C# Класс DotNetWorkQueue.Transport.SQLite.Basic.SqLiteMessageQueueCreation

A class that will create the queue tables if needed. No support for updating existing tables is provided.
Наследование: IQueueCreation
Показать файл Открыть проект Примеры использования класса

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

Метод Описание
CreateQueue ( ) : QueueCreationResult

Creates the queue if needed.

Dispose ( ) : void

Releases unmanaged and - optionally - managed resources.

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

SqLiteMessageQueueCreation ( IConnectionInformation connectionInfo, bool>.IQueryHandler queryTableExists, ISqLiteMessageQueueTransportOptionsFactory options, SqLiteMessageQueueSchema createSchema, QueueCreationResult>.ICommandHandlerWithOutput createCommand, QueueRemoveResult>.ICommandHandlerWithOutput deleteCommand, ICreationScope creationScope ) : System

Initializes a new instance of the SqLiteMessageQueueCreation class.

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

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

Releases unmanaged and - optionally - managed resources.

ThrowIfDisposed ( [ name = "" ) : void

Throws an exception if this instance has been disposed.

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

Метод Описание
CreateQueueInternal ( ) : QueueCreationResult

Creates the queue.

RemoveQueueInternal ( ) : QueueRemoveResult

Removes the queue if it exists

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

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

Creates the queue if needed.
public CreateQueue ( ) : QueueCreationResult
Результат QueueCreationResult

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

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

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

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
Результат QueueRemoveResult

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

Initializes a new instance of the SqLiteMessageQueueCreation class.
public SqLiteMessageQueueCreation ( IConnectionInformation connectionInfo, bool>.IQueryHandler queryTableExists, ISqLiteMessageQueueTransportOptionsFactory options, SqLiteMessageQueueSchema createSchema, QueueCreationResult>.ICommandHandlerWithOutput createCommand, QueueRemoveResult>.ICommandHandlerWithOutput deleteCommand, ICreationScope creationScope ) : System
connectionInfo IConnectionInformation The connection information.
queryTableExists bool>.IQueryHandler The query table exists.
options ISqLiteMessageQueueTransportOptionsFactory The options.
createSchema SqLiteMessageQueueSchema The create schema.
createCommand QueueCreationResult>.ICommandHandlerWithOutput The create command.
deleteCommand QueueRemoveResult>.ICommandHandlerWithOutput The delete command.
creationScope ICreationScope The creation scope.
Результат System

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

Throws an exception if this instance has been disposed.
protected ThrowIfDisposed ( [ name = "" ) : void
name [ The name.
Результат void