C# Class DotNetWorkQueue.Transport.PostgreSQL.Basic.PostgreSqlMessageQueueCreation

A class that will create the queue tables if needed. No support for updating existing tables is provided.
Inheritance: IQueueCreation
ファイルを表示 Open project: blehnen/DotNetWorkQueue Class Usage Examples

Public Methods

Method Description
CreateQueue ( ) : QueueCreationResult

Creates the queue if needed.

Dispose ( ) : void

Releases unmanaged and - optionally - managed resources.

PostgreSqlMessageQueueCreation ( IConnectionInformation connectionInfo, bool>.IQueryHandler queryTableExists, IPostgreSqlMessageQueueTransportOptionsFactory options, PostgreSqlMessageQueueSchema createSchema, QueueCreationResult>.ICommandHandlerWithOutput createCommand, QueueRemoveResult>.ICommandHandlerWithOutput deleteCommand, ICreationScope creationScope ) : System

Initializes a new instance of the PostgreSqlMessageQueueCreation class.

RemoveQueue ( ) : QueueRemoveResult

Attempts to delete an existing queue

Any data in the queue will be lost. Will cause exceptions in any producer/consumer that is connected

Protected Methods

Method Description
Dispose ( bool disposing ) : void

Releases unmanaged and - optionally - managed resources.

ThrowIfDisposed ( [ name = "" ) : void

Throws an exception if this instance has been disposed.

Private Methods

Method Description
CreateQueueInternal ( ) : QueueCreationResult

Creates the queue.

RemoveQueueInternal ( ) : QueueRemoveResult

Removes the queue if it exists

Method Details

CreateQueue() public method

Creates the queue if needed.
public CreateQueue ( ) : QueueCreationResult
return QueueCreationResult

Dispose() public method

Releases unmanaged and - optionally - managed 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

PostgreSqlMessageQueueCreation() public method

Initializes a new instance of the PostgreSqlMessageQueueCreation class.
public PostgreSqlMessageQueueCreation ( IConnectionInformation connectionInfo, bool>.IQueryHandler queryTableExists, IPostgreSqlMessageQueueTransportOptionsFactory options, PostgreSqlMessageQueueSchema createSchema, QueueCreationResult>.ICommandHandlerWithOutput createCommand, QueueRemoveResult>.ICommandHandlerWithOutput deleteCommand, ICreationScope creationScope ) : System
connectionInfo IConnectionInformation The connection information.
queryTableExists bool>.IQueryHandler The query table exists.
options IPostgreSqlMessageQueueTransportOptionsFactory The options.
createSchema PostgreSqlMessageQueueSchema The create schema.
createCommand QueueCreationResult>.ICommandHandlerWithOutput The create command.
deleteCommand QueueRemoveResult>.ICommandHandlerWithOutput The delete command.
creationScope ICreationScope The creation scope.
return System

RemoveQueue() public method

Attempts to delete an existing queue
Any data in the queue will be lost. Will cause exceptions in any producer/consumer that is connected
public RemoveQueue ( ) : QueueRemoveResult
return QueueRemoveResult

ThrowIfDisposed() protected method

Throws an exception if this instance has been disposed.
protected ThrowIfDisposed ( [ name = "" ) : void
name [ The name.
return void