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

Méthodes publiques

Méthode 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

Méthodes protégées

Méthode 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

Méthode Description
CreateQueueInternal ( ) : QueueCreationResult

Creates the queue.

RemoveQueueInternal ( ) : QueueRemoveResult

Removes the queue if it exists

Method Details

CreateQueue() public méthode

Creates the queue if needed.
public CreateQueue ( ) : QueueCreationResult
Résultat QueueCreationResult

Dispose() public méthode

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

PostgreSqlMessageQueueCreation() public méthode

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

RemoveQueue() public méthode

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
Résultat QueueRemoveResult

ThrowIfDisposed() protected méthode

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