Check out example codes for "devexpress objectspace to session". It will help you in understanding the concepts better.

Code Example 1

(objectSpace as XPObjectSpace).Session

Learn ReactJs, React Native from akashmittal.com