Filter:C# VB.NET C++ (.NET) Java PHP C++ Delphi / Pascal (VCL) C++Builder (VCL)
Opens logical synchronization session
- Engine - Contains the reference to the server engine which is used to handle the session
- UserID - Contains user ID as passed to client engine's OpenSession method
0 if the method succeeded or one of defined error codes in case of failure.
This method should open the logical session, allocate resources if needed and perform other preparations. User credentials are checked on transport level.
In plugins to Rethync Server software OpenSession is called for all registered and active plugins, no matter what classes they implement or what classes are requested to be synchronized. This lets plugins perform per-user initialization and finalization. IsClassSupported method is then called to determine, what plugin will handle further requests for certain class synchronization.
A reference provided in Engine parameter can be stored for further use. The engine provides mechanisms for centralized logging.
Got questions or comments about this topic? Tell us about them.