Struct ConnectionPoolClearingEvent
Occurs when the pool is about to be cleared.
public struct ConnectionPoolClearingEvent
- Inherited Members
Constructors
ConnectionPoolClearingEvent(ServerId, ConnectionPoolSettings)
Initializes a new instance of the ConnectionPoolClearingEvent struct.
public ConnectionPoolClearingEvent(ServerId serverId, ConnectionPoolSettings connectionPoolSettings)
Parameters
serverId
ServerIdThe server identifier.
connectionPoolSettings
ConnectionPoolSettingsThe connection pool settings.
ConnectionPoolClearingEvent(ServerId, ConnectionPoolSettings, bool)
Initializes a new instance of the ConnectionPoolClearingEvent struct.
public ConnectionPoolClearingEvent(ServerId serverId, ConnectionPoolSettings connectionPoolSettings, bool closeInUseConnections)
Parameters
serverId
ServerIdThe server identifier.
connectionPoolSettings
ConnectionPoolSettingsThe connection pool settings.
closeInUseConnections
boolWhether in use connections should be closed.
ConnectionPoolClearingEvent(ServerId, ConnectionPoolSettings, ObjectId?)
Initializes a new instance of the ConnectionPoolClearingEvent struct.
public ConnectionPoolClearingEvent(ServerId serverId, ConnectionPoolSettings connectionPoolSettings, ObjectId? serviceId)
Parameters
serverId
ServerIdThe server identifier.
connectionPoolSettings
ConnectionPoolSettingsThe connection pool settings.
serviceId
ObjectId?The service identifier.
ConnectionPoolClearingEvent(ServerId, ConnectionPoolSettings, ObjectId?, bool)
Initializes a new instance of the ConnectionPoolClearingEvent struct.
public ConnectionPoolClearingEvent(ServerId serverId, ConnectionPoolSettings connectionPoolSettings, ObjectId? serviceId, bool closeInUseConnections)
Parameters
serverId
ServerIdThe server identifier.
connectionPoolSettings
ConnectionPoolSettingsThe connection pool settings.
serviceId
ObjectId?The service identifier.
closeInUseConnections
boolWhether in use connections should be closed.
Properties
CloseInUseConnections
Gets a value indicating whether in use connections should be closed.
public bool CloseInUseConnections { get; }
Property Value
ClusterId
Gets the cluster identifier.
public ClusterId ClusterId { get; }
Property Value
ConnectionPoolSettings
Gets the connection pool settings.
public ConnectionPoolSettings ConnectionPoolSettings { get; }
Property Value
ServerId
Gets the server identifier.
public ServerId ServerId { get; }
Property Value
ServiceId
Gets the service identifier.
public ObjectId? ServiceId { get; }
Property Value
Timestamp
Gets the timestamp.
public DateTime Timestamp { get; }