C# 클래스 PIAdapters.PIConnectionPool

상속: IDisposable
파일 보기 프로젝트 열기: GridProtectionAlliance/gsf

공개 메소드들

메소드 설명
Dispose ( ) : void

Releases all the resources used by the PIConnectionPool object.

GetPooledConnection ( string serverName, string userName = null, string password = null, int connectTimeout = PIConnection.DefaultConnectTimeout ) : PIConnection

Gets a connection from the pool or creates a new one if all current connections are being used at peak access.

PIConnectionPool ( ) : System

Creates a new PIConnectionPool.

PIConnectionPool ( int minimumPoolSize ) : System

Creates a new PIConnectionPool.

ReturnPooledConnection ( PIConnection connection ) : void

Returns PIConnection to the pool.

보호된 메소드들

메소드 설명
Dispose ( bool disposing ) : void

Releases the unmanaged resources used by the PIConnectionPool object and optionally releases the managed resources.

비공개 메소드들

메소드 설명
connection_Disconnected ( object sender, EventArgs e ) : void

메소드 상세

Dispose() 공개 메소드

Releases all the resources used by the PIConnectionPool object.
public Dispose ( ) : void
리턴 void

Dispose() 보호된 메소드

Releases the unmanaged resources used by the PIConnectionPool object and optionally releases the managed resources.
protected Dispose ( bool disposing ) : void
disposing bool true to release both managed and unmanaged resources; false to release only unmanaged resources.
리턴 void

GetPooledConnection() 공개 메소드

Gets a connection from the pool or creates a new one if all current connections are being used at peak access.
Failed to get a pooled PI connection.
public GetPooledConnection ( string serverName, string userName = null, string password = null, int connectTimeout = PIConnection.DefaultConnectTimeout ) : PIConnection
serverName string Name of the PI server for the adapter's PI connection.
userName string Name of the PI user ID for the adapter's PI connection.
password string Password used for the adapter's PI connection.
connectTimeout int Timeout interval (in milliseconds) for the adapter's connection.
리턴 PIConnection

PIConnectionPool() 공개 메소드

Creates a new PIConnectionPool.
public PIConnectionPool ( ) : System
리턴 System

PIConnectionPool() 공개 메소드

Creates a new PIConnectionPool.
public PIConnectionPool ( int minimumPoolSize ) : System
minimumPoolSize int Minimum pool size to maintain.
리턴 System

ReturnPooledConnection() 공개 메소드

Returns PIConnection to the pool.
Provided PIConnection does not belong to this connection pool.
public ReturnPooledConnection ( PIConnection connection ) : void
connection PIConnection to return to the pool.
리턴 void