ConnectionStatus

Overview

The ConnectionStatus enumeration is used to denote the current connection status in the DataService's BeforeAcquireConnection, AfterAcquireConnection, BeforeReleaseConnection, AfterReleaseConnection event handlers. These events provide a ConnectionOperationEventArgs class instance as event information, setting its Status property to appropriate ConnectionStatus value. Thus the same method can handle all 4 abovementioned events (for example this is useful for logging purposes or fine-tuning of the acquired connection).

Location

Value Description
AfterAcquire AfterAcquireConnection event is raised
AfterRelease AfterReleaseConnection event is raised
BeforeAcquire BeforeAcquireConnection event is raised
BeforeRelease BeforeReleaseConnection event is raised