C# Класс PIAdapters.PIConnectionPool

Наследование: IDisposable
Показать файл Открыть проект

Открытые методы

Метод Описание
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