ConnectionManager

Overview

Includes the functionality required to handle a list of database connection definitions, instantiate actual connections and determine pooling settings.

The list of connections known to your server is loaded by using one of the several Load methods of this class (by default the parameter-less one) at startup. Once the list is loaded, you can then create a new connection or acquire them from pools by using the AcquireConnection method. Once you're done using the connection, you will need to return it to the connection manager through the use of the ReleaseConnection method.

The PoolingEnabled property determines if you want Data Abstract to use its own pooling mechanism rather than relying on ADO.NET's (which might or might not be available in some ADO.NET data providers). For additional pooling options, look at the PoolingBehavior, PoolTimeoutSeconds, WaitIntervalSeconds and MaxPoolSize properties.

Location

 

constructor

 

constructor

 

ConnectionManager()

 

Sub New

constructor (Boolean)

 

constructor(register: Boolean)

 

ConnectionManager(Boolean register)

 

Sub New (register As Boolean)

Parameters:

  • register:

constructor (IContainer)

 

constructor(container: IContainer)

 

ConnectionManager(IContainer container)

 

Sub New (container As IContainer)

Parameters:

  • container:

AcquireConnection

 

method AcquireConnection: IAbstractConnection

 

IAbstractConnection AcquireConnection()

 

Function AcquireConnection As IAbstractConnection

AcquireConnection (Boolean): IAbstractConnection

 

method AcquireConnection(connect: Boolean): IAbstractConnection

 

IAbstractConnection AcquireConnection(Boolean connect)

 

Function AcquireConnection(connect As Boolean) As IAbstractConnection

Parameters:

  • connect:

AcquireConnection (String): IAbstractConnection

 

method AcquireConnection(name: String): IAbstractConnection

 

IAbstractConnection AcquireConnection(String name)

 

Function AcquireConnection(name As String) As IAbstractConnection

Parameters:

  • name:

AcquireConnection (String, Boolean): IAbstractConnection

Returns a connection whose connection string is the same as the connection definition with the given name. The Boolean parameter determines if you want the connection to be opened automatically or not.

 

method AcquireConnection(name: String; connect: Boolean): IAbstractConnection

 

IAbstractConnection AcquireConnection(String name, Boolean connect)

 

Function AcquireConnection(name As String, connect As Boolean) As IAbstractConnection

Parameters:

  • name:
  • connect:

AcquireNewConnection

 

method AcquireNewConnection(connectionString: String; connect: Boolean): IAbstractConnection

 

IAbstractConnection AcquireNewConnection(String connectionString, Boolean connect)

 

Function AcquireNewConnection(connectionString As String, connect As Boolean) As IAbstractConnection

Parameters:

  • connectionString:
  • connect:

add_ConnectionAcquired

 

method add_ConnectionAcquired(value: ConnectionNotificationDelegate)

 

void add_ConnectionAcquired(ConnectionNotificationDelegate value)

 

Sub add_ConnectionAcquired(value As ConnectionNotificationDelegate)

Parameters:

  • value:

add_ConnectionCreated

 

method add_ConnectionCreated(value: ConnectionNotificationDelegate)

 

void add_ConnectionCreated(ConnectionNotificationDelegate value)

 

Sub add_ConnectionCreated(value As ConnectionNotificationDelegate)

Parameters:

  • value:

add_ConnectionFailed

 

method add_ConnectionFailed(value: ConnectionFailedDelegate)

 

void add_ConnectionFailed(ConnectionFailedDelegate value)

 

Sub add_ConnectionFailed(value As ConnectionFailedDelegate)

Parameters:

  • value:

add_ConnectionReleased

 

method add_ConnectionReleased(value: ConnectionNotificationDelegate)

 

void add_ConnectionReleased(ConnectionNotificationDelegate value)

 

Sub add_ConnectionReleased(value As ConnectionNotificationDelegate)

Parameters:

  • value:

add_CustomPoolTransactionBehavior

 

method add_CustomPoolTransactionBehavior(value: ConnectionNotificationDelegate)

 

void add_CustomPoolTransactionBehavior(ConnectionNotificationDelegate value)

 

Sub add_CustomPoolTransactionBehavior(value As ConnectionNotificationDelegate)

Parameters:

  • value:

AddDefinition (String, String): ConnectionDefinition

 

method AddDefinition(name: String; connectionString: String): ConnectionDefinition

 

ConnectionDefinition AddDefinition(String name, String connectionString)

 

Function AddDefinition(name As String, connectionString As String) As ConnectionDefinition

Parameters:

  • name:
  • connectionString:

AddDefinition (String, String, Boolean): ConnectionDefinition

Adds a connection definition to the ConnectionDefinitions collection. Makes the similar action as ConnectionDefinitions.Add.

 

method AddDefinition(name: String; connectionString: String; isDefault: Boolean): ConnectionDefinition

 

ConnectionDefinition AddDefinition(String name, String connectionString, Boolean isDefault)

 

Function AddDefinition(name As String, connectionString As String, isDefault As Boolean) As ConnectionDefinition

Parameters:

  • name:
  • connectionString:
  • isDefault:

ClearPool

 

method ClearPool

 

void ClearPool()

 

Sub ClearPool

ConnectionAcquired

Occurs whenever a connection is returned by the AcquireConnection method. Note: This event occurs whether or not the connection is held in a pool.

 

event ConnectionAcquired: ConnectionNotificationDelegate;
delegate: method ConnectionAcquired(sender: ConnectionManager; connection: IAbstractConnection)

 

delegate ConnectionNotificationDelegate ConnectionAcquired()
delegate: void ConnectionAcquired(ConnectionManager sender, IAbstractConnection connection)

 

Event ConnectionAcquired As ConnectionNotificationDelegate
delegate: Sub ConnectionAcquired(sender As ConnectionManager, connection As IAbstractConnection)

ConnectionCreated

Occurs whenever a new connection is created during a call to AcquireConnection. Note: This event only occurs if connection manager pooling is not enabled.

 

event ConnectionCreated: ConnectionNotificationDelegate;
delegate: method ConnectionCreated(sender: ConnectionManager; connection: IAbstractConnection)

 

delegate ConnectionNotificationDelegate ConnectionCreated()
delegate: void ConnectionCreated(ConnectionManager sender, IAbstractConnection connection)

 

Event ConnectionCreated As ConnectionNotificationDelegate
delegate: Sub ConnectionCreated(sender As ConnectionManager, connection As IAbstractConnection)

ConnectionDefinitions

Provides access to the list of connection definitions held by the connection manager.

 

property ConnectionDefinitions: ConnectionDefinitionCollection read;

 

ConnectionDefinitionCollection ConnectionDefinitions { get; }

 

Property ReadOnly ConnectionDefinitions As ConnectionDefinitionCollection

ConnectionFailed

 

event ConnectionFailed: ConnectionFailedDelegate;
delegate: method ConnectionFailed(sender: ConnectionManager; connection: IAbstractConnection; exception: Exception)

 

delegate ConnectionFailedDelegate ConnectionFailed()
delegate: void ConnectionFailed(ConnectionManager sender, IAbstractConnection connection, Exception exception)

 

Event ConnectionFailed As ConnectionFailedDelegate
delegate: Sub ConnectionFailed(sender As ConnectionManager, connection As IAbstractConnection, exception As Exception)

ConnectionPoolTimeout

 

property ConnectionPoolTimeout: Int32 read write;

 

Int32 ConnectionPoolTimeout { get; set; }

 

Property ConnectionPoolTimeout As Int32

ConnectionReleased

Occurs anytime a connection is released through the use of the ReleaseConnection method.

 

event ConnectionReleased: ConnectionNotificationDelegate;
delegate: method ConnectionReleased(sender: ConnectionManager; connection: IAbstractConnection)

 

delegate ConnectionNotificationDelegate ConnectionReleased()
delegate: void ConnectionReleased(ConnectionManager sender, IAbstractConnection connection)

 

Event ConnectionReleased As ConnectionNotificationDelegate
delegate: Sub ConnectionReleased(sender As ConnectionManager, connection As IAbstractConnection)

CustomPoolTransactionBehavior

 

event CustomPoolTransactionBehavior: ConnectionNotificationDelegate;
delegate: method CustomPoolTransactionBehavior(sender: ConnectionManager; connection: IAbstractConnection)

 

delegate ConnectionNotificationDelegate CustomPoolTransactionBehavior()
delegate: void CustomPoolTransactionBehavior(ConnectionManager sender, IAbstractConnection connection)

 

Event CustomPoolTransactionBehavior As ConnectionNotificationDelegate
delegate: Sub CustomPoolTransactionBehavior(sender As ConnectionManager, connection As IAbstractConnection)

DefaultConnectionDefinition

Returns the connection definition, whose Default property is set to true, from the list referenced by the property ConnectionDefinitions.

 

property DefaultConnectionDefinition: ConnectionDefinition read;

 

ConnectionDefinition DefaultConnectionDefinition { get; }

 

Property ReadOnly DefaultConnectionDefinition As ConnectionDefinition

DefaultConnectionName

Returns the name of the connection returned by DefaultConnectionDefinition or an empty string if that property returns null.

 

property DefaultConnectionName: String read;

 

String DefaultConnectionName { get; }

 

Property ReadOnly DefaultConnectionName As String

Dispose  protected

 

method Dispose(disposing: Boolean)

 

void Dispose(Boolean disposing)

 

Sub Dispose(disposing As Boolean)

Parameters:

  • disposing:

EnableAdoConnectionPooling

 

property EnableAdoConnectionPooling: Boolean read write;

 

Boolean EnableAdoConnectionPooling { get; set; }

 

Property EnableAdoConnectionPooling As Boolean

Load

Loads a Data Abstract connections file using the default mechanism, which looks in several places for a valid .daConnections file: * as a .daConnnections file next to your application's executable * as a .daConnnections resource in your application's executable

If your application does not provide a custom DataAbstract.daConfig, either as file or as embedded resource, the call will fail with an exception.

 

method Load

 

void Load()

 

Sub Load

LoadFromFile

 

method LoadFromFile

 

void LoadFromFile()

 

Sub LoadFromFile

LoadFromFile (String)

Loads a Data Abstract connection from the specified file. If the filename is empty, the configuration will be loaded from a .daConnctions file next to your application's executable.

 

method LoadFromFile(filename: String)

 

void LoadFromFile(String filename)

 

Sub LoadFromFile(filename As String)

Parameters:

  • filename:

LoadFromResource

 

method LoadFromResource

 

void LoadFromResource()

 

Sub LoadFromResource

LoadFromResource (String)

Loads a Data Abstract connection from a resource in your application's executable. If the resource name is empty, the connections will be loaded from a resource named .daConnctions.

 

method LoadFromResource(resource: String)

 

void LoadFromResource(String resource)

 

Sub LoadFromResource(resource As String)

Parameters:

  • resource:

LoadFromXml

Loads a Data Abstract connections from an IXMLDocument. Use this method if you want to obtain the list of connections by other means then from a local file or a resource.

 

method LoadFromXml(xml: XmlDocument)

 

void LoadFromXml(XmlDocument xml)

 

Sub LoadFromXml(xml As XmlDocument)

Parameters:

  • xml:

MaxPoolSize

Defines the maximum number of connections that connection pools can hold.

 

property MaxPoolSize: Int32 read write;

 

Int32 MaxPoolSize { get; set; }

 

Property MaxPoolSize As Int32

PoolingBehavior

Determines how the connection pool behaves if no connections are available to serve a call to AcquireConnection. Depending on the assigned value, AcquireConnection will either wait until a connection becomes available, return an error, or create a new unpooled connection.

 

property PoolingBehavior: PoolBehavior read write;

 

PoolBehavior PoolingBehavior { get; set; }

 

Property PoolingBehavior As PoolBehavior

PoolingEnabled

Determines if Data Abstract connection pooling should be enabled or not.

 

property PoolingEnabled: Boolean read write;

 

Boolean PoolingEnabled { get; set; }

 

Property PoolingEnabled As Boolean

PoolTimeoutSeconds

 

property PoolTimeoutSeconds: Int32 read write;

 

Int32 PoolTimeoutSeconds { get; set; }

 

Property PoolTimeoutSeconds As Int32

PoolTransactionBehaviour

 

property PoolTransactionBehaviour: PoolTransactionBehaviour read write;

 

PoolTransactionBehaviour PoolTransactionBehaviour { get; set; }

 

Property PoolTransactionBehaviour As PoolTransactionBehaviour

ReleaseConnection (IAbstractConnection)

 

method ReleaseConnection(var connection: IAbstractConnection)

 

void ReleaseConnection(ref IAbstractConnection connection)

 

Sub ReleaseConnection(ByRef connection As IAbstractConnection)

Parameters:

  • connection:

ReleaseConnection (IAbstractConnection, Boolean)

 

method ReleaseConnection(var connection: IAbstractConnection; keepInPool: Boolean)

 

void ReleaseConnection(ref IAbstractConnection connection, Boolean keepInPool)

 

Sub ReleaseConnection(ByRef connection As IAbstractConnection, keepInPool As Boolean)

Parameters:

  • connection:
  • keepInPool:

remove_ConnectionAcquired

 

method remove_ConnectionAcquired(value: ConnectionNotificationDelegate)

 

void remove_ConnectionAcquired(ConnectionNotificationDelegate value)

 

Sub remove_ConnectionAcquired(value As ConnectionNotificationDelegate)

Parameters:

  • value:

remove_ConnectionCreated

 

method remove_ConnectionCreated(value: ConnectionNotificationDelegate)

 

void remove_ConnectionCreated(ConnectionNotificationDelegate value)

 

Sub remove_ConnectionCreated(value As ConnectionNotificationDelegate)

Parameters:

  • value:

remove_ConnectionFailed

 

method remove_ConnectionFailed(value: ConnectionFailedDelegate)

 

void remove_ConnectionFailed(ConnectionFailedDelegate value)

 

Sub remove_ConnectionFailed(value As ConnectionFailedDelegate)

Parameters:

  • value:

remove_ConnectionReleased

 

method remove_ConnectionReleased(value: ConnectionNotificationDelegate)

 

void remove_ConnectionReleased(ConnectionNotificationDelegate value)

 

Sub remove_ConnectionReleased(value As ConnectionNotificationDelegate)

Parameters:

  • value:

remove_CustomPoolTransactionBehavior

 

method remove_CustomPoolTransactionBehavior(value: ConnectionNotificationDelegate)

 

void remove_CustomPoolTransactionBehavior(ConnectionNotificationDelegate value)

 

Sub remove_CustomPoolTransactionBehavior(value As ConnectionNotificationDelegate)

Parameters:

  • value:

WaitIntervalSeconds

Determines how many seconds to wait for a connection to be released from a pool before timing out.

 

property WaitIntervalSeconds: Int32 read write;

 

Int32 WaitIntervalSeconds { get; set; }

 

Property WaitIntervalSeconds As Int32

 

ConnectionDefinitions

Provides access to the list of connection definitions held by the connection manager.

 

property ConnectionDefinitions: ConnectionDefinitionCollection read;

 

ConnectionDefinitionCollection ConnectionDefinitions { get; }

 

Property ReadOnly ConnectionDefinitions As ConnectionDefinitionCollection

ConnectionPoolTimeout

 

property ConnectionPoolTimeout: Int32 read write;

 

Int32 ConnectionPoolTimeout { get; set; }

 

Property ConnectionPoolTimeout As Int32

DefaultConnectionDefinition

Returns the connection definition, whose Default property is set to true, from the list referenced by the property ConnectionDefinitions.

 

property DefaultConnectionDefinition: ConnectionDefinition read;

 

ConnectionDefinition DefaultConnectionDefinition { get; }

 

Property ReadOnly DefaultConnectionDefinition As ConnectionDefinition

DefaultConnectionName

Returns the name of the connection returned by DefaultConnectionDefinition or an empty string if that property returns null.

 

property DefaultConnectionName: String read;

 

String DefaultConnectionName { get; }

 

Property ReadOnly DefaultConnectionName As String

EnableAdoConnectionPooling

 

property EnableAdoConnectionPooling: Boolean read write;

 

Boolean EnableAdoConnectionPooling { get; set; }

 

Property EnableAdoConnectionPooling As Boolean

MaxPoolSize

Defines the maximum number of connections that connection pools can hold.

 

property MaxPoolSize: Int32 read write;

 

Int32 MaxPoolSize { get; set; }

 

Property MaxPoolSize As Int32

PoolingBehavior

Determines how the connection pool behaves if no connections are available to serve a call to AcquireConnection. Depending on the assigned value, AcquireConnection will either wait until a connection becomes available, return an error, or create a new unpooled connection.

 

property PoolingBehavior: PoolBehavior read write;

 

PoolBehavior PoolingBehavior { get; set; }

 

Property PoolingBehavior As PoolBehavior

PoolingEnabled

Determines if Data Abstract connection pooling should be enabled or not.

 

property PoolingEnabled: Boolean read write;

 

Boolean PoolingEnabled { get; set; }

 

Property PoolingEnabled As Boolean

PoolTimeoutSeconds

 

property PoolTimeoutSeconds: Int32 read write;

 

Int32 PoolTimeoutSeconds { get; set; }

 

Property PoolTimeoutSeconds As Int32

PoolTransactionBehaviour

 

property PoolTransactionBehaviour: PoolTransactionBehaviour read write;

 

PoolTransactionBehaviour PoolTransactionBehaviour { get; set; }

 

Property PoolTransactionBehaviour As PoolTransactionBehaviour

WaitIntervalSeconds

Determines how many seconds to wait for a connection to be released from a pool before timing out.

 

property WaitIntervalSeconds: Int32 read write;

 

Int32 WaitIntervalSeconds { get; set; }

 

Property WaitIntervalSeconds As Int32

 

constructor

 

constructor

 

ConnectionManager()

 

Sub New

constructor (Boolean)

 

constructor(register: Boolean)

 

ConnectionManager(Boolean register)

 

Sub New (register As Boolean)

Parameters:

  • register:

constructor (IContainer)

 

constructor(container: IContainer)

 

ConnectionManager(IContainer container)

 

Sub New (container As IContainer)

Parameters:

  • container:

AcquireConnection

 

method AcquireConnection: IAbstractConnection

 

IAbstractConnection AcquireConnection()

 

Function AcquireConnection As IAbstractConnection

AcquireConnection (Boolean): IAbstractConnection

 

method AcquireConnection(connect: Boolean): IAbstractConnection

 

IAbstractConnection AcquireConnection(Boolean connect)

 

Function AcquireConnection(connect As Boolean) As IAbstractConnection

Parameters:

  • connect:

AcquireConnection (String): IAbstractConnection

 

method AcquireConnection(name: String): IAbstractConnection

 

IAbstractConnection AcquireConnection(String name)

 

Function AcquireConnection(name As String) As IAbstractConnection

Parameters:

  • name:

AcquireConnection (String, Boolean): IAbstractConnection

Returns a connection whose connection string is the same as the connection definition with the given name. The Boolean parameter determines if you want the connection to be opened automatically or not.

 

method AcquireConnection(name: String; connect: Boolean): IAbstractConnection

 

IAbstractConnection AcquireConnection(String name, Boolean connect)

 

Function AcquireConnection(name As String, connect As Boolean) As IAbstractConnection

Parameters:

  • name:
  • connect:

AcquireNewConnection

 

method AcquireNewConnection(connectionString: String; connect: Boolean): IAbstractConnection

 

IAbstractConnection AcquireNewConnection(String connectionString, Boolean connect)

 

Function AcquireNewConnection(connectionString As String, connect As Boolean) As IAbstractConnection

Parameters:

  • connectionString:
  • connect:

add_ConnectionAcquired

 

method add_ConnectionAcquired(value: ConnectionNotificationDelegate)

 

void add_ConnectionAcquired(ConnectionNotificationDelegate value)

 

Sub add_ConnectionAcquired(value As ConnectionNotificationDelegate)

Parameters:

  • value:

add_ConnectionCreated

 

method add_ConnectionCreated(value: ConnectionNotificationDelegate)

 

void add_ConnectionCreated(ConnectionNotificationDelegate value)

 

Sub add_ConnectionCreated(value As ConnectionNotificationDelegate)

Parameters:

  • value:

add_ConnectionFailed

 

method add_ConnectionFailed(value: ConnectionFailedDelegate)

 

void add_ConnectionFailed(ConnectionFailedDelegate value)

 

Sub add_ConnectionFailed(value As ConnectionFailedDelegate)

Parameters:

  • value:

add_ConnectionReleased

 

method add_ConnectionReleased(value: ConnectionNotificationDelegate)

 

void add_ConnectionReleased(ConnectionNotificationDelegate value)

 

Sub add_ConnectionReleased(value As ConnectionNotificationDelegate)

Parameters:

  • value:

add_CustomPoolTransactionBehavior

 

method add_CustomPoolTransactionBehavior(value: ConnectionNotificationDelegate)

 

void add_CustomPoolTransactionBehavior(ConnectionNotificationDelegate value)

 

Sub add_CustomPoolTransactionBehavior(value As ConnectionNotificationDelegate)

Parameters:

  • value:

AddDefinition (String, String): ConnectionDefinition

 

method AddDefinition(name: String; connectionString: String): ConnectionDefinition

 

ConnectionDefinition AddDefinition(String name, String connectionString)

 

Function AddDefinition(name As String, connectionString As String) As ConnectionDefinition

Parameters:

  • name:
  • connectionString:

AddDefinition (String, String, Boolean): ConnectionDefinition

Adds a connection definition to the ConnectionDefinitions collection. Makes the similar action as ConnectionDefinitions.Add.

 

method AddDefinition(name: String; connectionString: String; isDefault: Boolean): ConnectionDefinition

 

ConnectionDefinition AddDefinition(String name, String connectionString, Boolean isDefault)

 

Function AddDefinition(name As String, connectionString As String, isDefault As Boolean) As ConnectionDefinition

Parameters:

  • name:
  • connectionString:
  • isDefault:

ClearPool

 

method ClearPool

 

void ClearPool()

 

Sub ClearPool

Dispose  protected

 

method Dispose(disposing: Boolean)

 

void Dispose(Boolean disposing)

 

Sub Dispose(disposing As Boolean)

Parameters:

  • disposing:

Load

Loads a Data Abstract connections file using the default mechanism, which looks in several places for a valid .daConnections file: * as a .daConnnections file next to your application's executable * as a .daConnnections resource in your application's executable

If your application does not provide a custom DataAbstract.daConfig, either as file or as embedded resource, the call will fail with an exception.

 

method Load

 

void Load()

 

Sub Load

LoadFromFile

 

method LoadFromFile

 

void LoadFromFile()

 

Sub LoadFromFile

LoadFromFile (String)

Loads a Data Abstract connection from the specified file. If the filename is empty, the configuration will be loaded from a .daConnctions file next to your application's executable.

 

method LoadFromFile(filename: String)

 

void LoadFromFile(String filename)

 

Sub LoadFromFile(filename As String)

Parameters:

  • filename:

LoadFromResource

 

method LoadFromResource

 

void LoadFromResource()

 

Sub LoadFromResource

LoadFromResource (String)

Loads a Data Abstract connection from a resource in your application's executable. If the resource name is empty, the connections will be loaded from a resource named .daConnctions.

 

method LoadFromResource(resource: String)

 

void LoadFromResource(String resource)

 

Sub LoadFromResource(resource As String)

Parameters:

  • resource:

LoadFromXml

Loads a Data Abstract connections from an IXMLDocument. Use this method if you want to obtain the list of connections by other means then from a local file or a resource.

 

method LoadFromXml(xml: XmlDocument)

 

void LoadFromXml(XmlDocument xml)

 

Sub LoadFromXml(xml As XmlDocument)

Parameters:

  • xml:

ReleaseConnection (IAbstractConnection)

 

method ReleaseConnection(var connection: IAbstractConnection)

 

void ReleaseConnection(ref IAbstractConnection connection)

 

Sub ReleaseConnection(ByRef connection As IAbstractConnection)

Parameters:

  • connection:

ReleaseConnection (IAbstractConnection, Boolean)

 

method ReleaseConnection(var connection: IAbstractConnection; keepInPool: Boolean)

 

void ReleaseConnection(ref IAbstractConnection connection, Boolean keepInPool)

 

Sub ReleaseConnection(ByRef connection As IAbstractConnection, keepInPool As Boolean)

Parameters:

  • connection:
  • keepInPool:

remove_ConnectionAcquired

 

method remove_ConnectionAcquired(value: ConnectionNotificationDelegate)

 

void remove_ConnectionAcquired(ConnectionNotificationDelegate value)

 

Sub remove_ConnectionAcquired(value As ConnectionNotificationDelegate)

Parameters:

  • value:

remove_ConnectionCreated

 

method remove_ConnectionCreated(value: ConnectionNotificationDelegate)

 

void remove_ConnectionCreated(ConnectionNotificationDelegate value)

 

Sub remove_ConnectionCreated(value As ConnectionNotificationDelegate)

Parameters:

  • value:

remove_ConnectionFailed

 

method remove_ConnectionFailed(value: ConnectionFailedDelegate)

 

void remove_ConnectionFailed(ConnectionFailedDelegate value)

 

Sub remove_ConnectionFailed(value As ConnectionFailedDelegate)

Parameters:

  • value:

remove_ConnectionReleased

 

method remove_ConnectionReleased(value: ConnectionNotificationDelegate)

 

void remove_ConnectionReleased(ConnectionNotificationDelegate value)

 

Sub remove_ConnectionReleased(value As ConnectionNotificationDelegate)

Parameters:

  • value:

remove_CustomPoolTransactionBehavior

 

method remove_CustomPoolTransactionBehavior(value: ConnectionNotificationDelegate)

 

void remove_CustomPoolTransactionBehavior(ConnectionNotificationDelegate value)

 

Sub remove_CustomPoolTransactionBehavior(value As ConnectionNotificationDelegate)

Parameters:

  • value:

 

ConnectionAcquired

Occurs whenever a connection is returned by the AcquireConnection method. Note: This event occurs whether or not the connection is held in a pool.

 

event ConnectionAcquired: ConnectionNotificationDelegate;
delegate: method ConnectionAcquired(sender: ConnectionManager; connection: IAbstractConnection)

 

delegate ConnectionNotificationDelegate ConnectionAcquired()
delegate: void ConnectionAcquired(ConnectionManager sender, IAbstractConnection connection)

 

Event ConnectionAcquired As ConnectionNotificationDelegate
delegate: Sub ConnectionAcquired(sender As ConnectionManager, connection As IAbstractConnection)

ConnectionCreated

Occurs whenever a new connection is created during a call to AcquireConnection. Note: This event only occurs if connection manager pooling is not enabled.

 

event ConnectionCreated: ConnectionNotificationDelegate;
delegate: method ConnectionCreated(sender: ConnectionManager; connection: IAbstractConnection)

 

delegate ConnectionNotificationDelegate ConnectionCreated()
delegate: void ConnectionCreated(ConnectionManager sender, IAbstractConnection connection)

 

Event ConnectionCreated As ConnectionNotificationDelegate
delegate: Sub ConnectionCreated(sender As ConnectionManager, connection As IAbstractConnection)

ConnectionFailed

 

event ConnectionFailed: ConnectionFailedDelegate;
delegate: method ConnectionFailed(sender: ConnectionManager; connection: IAbstractConnection; exception: Exception)

 

delegate ConnectionFailedDelegate ConnectionFailed()
delegate: void ConnectionFailed(ConnectionManager sender, IAbstractConnection connection, Exception exception)

 

Event ConnectionFailed As ConnectionFailedDelegate
delegate: Sub ConnectionFailed(sender As ConnectionManager, connection As IAbstractConnection, exception As Exception)

ConnectionReleased

Occurs anytime a connection is released through the use of the ReleaseConnection method.

 

event ConnectionReleased: ConnectionNotificationDelegate;
delegate: method ConnectionReleased(sender: ConnectionManager; connection: IAbstractConnection)

 

delegate ConnectionNotificationDelegate ConnectionReleased()
delegate: void ConnectionReleased(ConnectionManager sender, IAbstractConnection connection)

 

Event ConnectionReleased As ConnectionNotificationDelegate
delegate: Sub ConnectionReleased(sender As ConnectionManager, connection As IAbstractConnection)

CustomPoolTransactionBehavior

 

event CustomPoolTransactionBehavior: ConnectionNotificationDelegate;
delegate: method CustomPoolTransactionBehavior(sender: ConnectionManager; connection: IAbstractConnection)

 

delegate ConnectionNotificationDelegate CustomPoolTransactionBehavior()
delegate: void CustomPoolTransactionBehavior(ConnectionManager sender, IAbstractConnection connection)

 

Event CustomPoolTransactionBehavior As ConnectionNotificationDelegate
delegate: Sub CustomPoolTransactionBehavior(sender As ConnectionManager, connection As IAbstractConnection)