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
serverId
ServerIdThe server identifier.
connectionPoolSettings
ConnectionPoolSettingsThe connection pool settings.
ConnectionPoolClearedEvent(ServerId, ConnectionPoolSettings, bool)
Initializes a new instance of the ConnectionPoolClearedEvent struct.
public ConnectionPoolClearedEvent(ServerId serverId, ConnectionPoolSettings connectionPoolSettings, bool closeInUseConnections)
Parameters
serverId
ServerIdThe server identifier.
connectionPoolSettings
ConnectionPoolSettingsThe connection pool settings.
closeInUseConnections
boolWhether 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
serverId
ServerIdThe server identifier.
connectionPoolSettings
ConnectionPoolSettingsThe connection pool settings.
serviceId
ObjectId?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
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; }