C# Класс DotNetWorkQueue.Transport.PostgreSQL.Basic.Connection

This object holds the state of an item that is in progress. It's used to commit or rollback the work item as needed.
Наследование: IDisposable, IIsDisposed
Показать файл Открыть проект Примеры использования класса

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

Метод Описание
Connection ( IConnectionInformation connectionInfo, PostgreSqlMessageQueueTransportOptions options ) : System

Initializes a new instance of the Connection class.

CreateCommand ( ) : NpgsqlCommand

Creates a SQL command object from the current connection and sets the transaction if one is present.

Dispose ( ) : void

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.

Защищенные методы

Метод Описание
Dispose ( bool disposing ) : void

Releases unmanaged and - optionally - managed resources.

Приватные методы

Метод Описание
ThrowIfDisposed ( [ name = "" ) : void

Throws an exception if this instance has been disposed.

Описание методов

Connection() публичный Метод

Initializes a new instance of the Connection class.
public Connection ( IConnectionInformation connectionInfo, PostgreSqlMessageQueueTransportOptions options ) : System
connectionInfo IConnectionInformation The connection information.
options PostgreSqlMessageQueueTransportOptions The options.
Результат System

CreateCommand() публичный Метод

Creates a SQL command object from the current connection and sets the transaction if one is present.
public CreateCommand ( ) : NpgsqlCommand
Результат Npgsql.NpgsqlCommand

Dispose() публичный Метод

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
public Dispose ( ) : void
Результат void

Dispose() защищенный Метод

Releases unmanaged and - optionally - managed resources.
protected Dispose ( bool disposing ) : void
disposing bool true to release both managed and unmanaged resources; false to release only unmanaged resources.
Результат void