C# Class 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.
Inheritance: IDisposable, IIsDisposed
显示文件 Open project: blehnen/DotNetWorkQueue Class Usage Examples

Public Methods

Method Description
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.

Protected Methods

Method Description
Dispose ( bool disposing ) : void

Releases unmanaged and - optionally - managed resources.

Private Methods

Method Description
ThrowIfDisposed ( [ name = "" ) : void

Throws an exception if this instance has been disposed.

Method Details

Connection() public method

Initializes a new instance of the Connection class.
public Connection ( IConnectionInformation connectionInfo, PostgreSqlMessageQueueTransportOptions options ) : System
connectionInfo IConnectionInformation The connection information.
options PostgreSqlMessageQueueTransportOptions The options.
return System

CreateCommand() public method

Creates a SQL command object from the current connection and sets the transaction if one is present.
public CreateCommand ( ) : NpgsqlCommand
return Npgsql.NpgsqlCommand

Dispose() public method

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
public Dispose ( ) : void
return void

Dispose() protected method

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.
return void