C# Class DotNetWorkQueue.Transport.Redis.Basic.RedisQueueCreation

Allows deleting redis queues; creation is a no-op, as redis queues do not need to be pre-created.
Inheritance: IQueueCreation
Show file Open project: blehnen/DotNetWorkQueue Class Usage Examples

Public Methods

Method Description
CreateQueue ( ) : QueueCreationResult

Creates the queue if needed.

This does nothing for the Redis transport, as pre-creating the queue is not necessary.

Dispose ( ) : void

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.

RedisQueueCreation ( IConnectionInformation connectionInfo, IRedisConnection redisConnection, RedisNames redisNames, ICreationScope creationScope ) : System.Threading

Initializes a new instance of the RedisQueueCreation 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

Private Methods

Method Description
RemoveQueueInternal ( ) : QueueRemoveResult

Deletes a queue by deleting all of its keys

Method Details

CreateQueue() public method

Creates the queue if needed.
This does nothing for the Redis transport, as pre-creating the queue is not necessary.
public CreateQueue ( ) : QueueCreationResult
return QueueCreationResult

Dispose() public method

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

RedisQueueCreation() public method

Initializes a new instance of the RedisQueueCreation class.
public RedisQueueCreation ( IConnectionInformation connectionInfo, IRedisConnection redisConnection, RedisNames redisNames, ICreationScope creationScope ) : System.Threading
connectionInfo IConnectionInformation The connection information.
redisConnection IRedisConnection The redis connection.
redisNames RedisNames The redis names.
creationScope ICreationScope The creation scope.
return System.Threading

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