Occurs before the connection to a database is detached.
public event SessionManipulationEventHandler BeforeDisconnect
Public Event BeforeDisconnect As SessionManipulationEventHandler
The BeforeDisconnect event handler receives an argument of the SessionManipulationEventArgs type.
The following properties provide information specific to this event.
A session is disconnected from a database via the Session.Disconnect method. As a result the BeforeDisconnect event is raised. The event parameter's SessionManipulationEventArgs.Session property identifies the processed session.
After the connection has been detached the Session.AfterDisconnect event is raised.