Filter:C# VB.NET C++ (.NET) Java PHP C++ Delphi / Pascal (VCL) C++Builder (VCL)
Closes logical synchronization session
- Sender - Contains the reference to the object that fired an event
- Success - Indicates whether the session has been completed successfully and the client called CloseSession on its side, or the session is close due to timeout, fatal error or server shutdown
- Result - Event handler must set the parameter to 0 if no problems happened during handling of this event or to one of defined error codes in case of failure
The event handler should close the logical session, deallocate resources if needed and perform other finalization. If there are any object classes locked during the session and they have not been unlocked, CloseSession should also unlock them.
If the implementation needs to add some information or status to the centralized log, it can use Log() method of Engine object provided in OnOpenSession event.
Got questions or comments about this topic? Tell us about them.