Occurs when a connection to a database is closed.
The AfterDisconnect event handler receives an argument of the SessionManipulationEventArgs type. The following properties provide information specific to this event.
|Session||Gets the session currently being processed.|
To disconnect a session from a database use the Session.Disconnect method. After the connection has been closed, the AfterDisconnect event is raised. The event parameter's SessionManipulationEventArgs.Session property identifies the processed session.