C# Class DotNetWorkQueue.Transport.SqlServer.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
Afficher le fichier Open project: blehnen/DotNetWorkQueue Class Usage Examples

Méthodes publiques

Méthode Description
Connection ( IConnectionInformation connectionInfo, SqlServerMessageQueueTransportOptions options ) : System

Initializes a new instance of the Connection class.

CreateCommand ( ) : SqlCommand

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.

Méthodes protégées

Méthode Description
Dispose ( bool disposing ) : void

Releases unmanaged and - optionally - managed resources.

Private Methods

Méthode Description
ThrowIfDisposed ( [ name = "" ) : void

Throws an exception if this instance has been disposed.

Method Details

Connection() public méthode

Initializes a new instance of the Connection class.
public Connection ( IConnectionInformation connectionInfo, SqlServerMessageQueueTransportOptions options ) : System
connectionInfo IConnectionInformation The connection information.
options SqlServerMessageQueueTransportOptions The options.
Résultat System

CreateCommand() public méthode

Creates a SQL command object from the current connection and sets the transaction if one is present.
public CreateCommand ( ) : SqlCommand
Résultat System.Data.SqlClient.SqlCommand

Dispose() public méthode

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

Dispose() protected méthode

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.
Résultat void