ClientSession Class
- Last UpdatedNov 06, 2025
- 1 minute read
The ClientSession class manages the MES session for an application. You use it to start a session with the MES Middleware and log users onto the session.
The ClientSession object has a property to indicate which user is the current user. Through the users, you access the entities the users are logged onto. Through the entities, you access the jobs that are running on the entities.
There is only one ClientSession object for an application, and the object exists from the time it is created until the application ends. You get a reference to the ClientSession object by calling the GetInstance() static method. The first call to this method will create the ClientSession object. For more examples, see Using the MES Stateful API.
System.Object
FactMES.Client.Common.ClientSession
