Struct ConnectionPoolClearedEvent
Occurs after the pool is cleared.
public struct ConnectionPoolClearedEvent
- Inherited Members
Constructors
ConnectionPoolClearedEvent(ServerId, ConnectionPoolSettings)
Initializes a new instance of the ConnectionPoolClearedEvent struct.
public ConnectionPoolClearedEvent(ServerId serverId, ConnectionPoolSettings connectionPoolSettings)
Parameters
serverIdServerIdThe server identifier.
connectionPoolSettingsConnectionPoolSettingsThe connection pool settings.
ConnectionPoolClearedEvent(ServerId, ConnectionPoolSettings, bool)
Initializes a new instance of the ConnectionPoolClearedEvent struct.
public ConnectionPoolClearedEvent(ServerId serverId, ConnectionPoolSettings connectionPoolSettings, bool closeInUseConnections)
Parameters
serverIdServerIdThe server identifier.
connectionPoolSettingsConnectionPoolSettingsThe connection pool settings.
closeInUseConnectionsboolWhether in use connections should be closed.
ConnectionPoolClearedEvent(ServerId, ConnectionPoolSettings, ObjectId?)
Initializes a new instance of the ConnectionPoolClearedEvent struct.
public ConnectionPoolClearedEvent(ServerId serverId, ConnectionPoolSettings connectionPoolSettings, ObjectId? serviceId)
Parameters
serverIdServerIdThe server identifier.
connectionPoolSettingsConnectionPoolSettingsThe connection pool settings.
serviceIdObjectId?The service identifier.
ConnectionPoolClearedEvent(ServerId, ConnectionPoolSettings, ObjectId?, bool)
Initializes a new instance of the ConnectionPoolClearedEvent struct.
public ConnectionPoolClearedEvent(ServerId serverId, ConnectionPoolSettings connectionPoolSettings, ObjectId? serviceId, bool closeInUseConnections)
Parameters
serverIdServerIdThe server identifier.
connectionPoolSettingsConnectionPoolSettingsThe connection pool settings.
serviceIdObjectId?The service identifier.
closeInUseConnectionsboolWhether 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; }