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

Allows a caller to wait and block until a pub/sub call has occurred for a specific message id
Inheritance: IRedisQueueWorkSub
Show file Open project: blehnen/DotNetWorkQueue

Public Methods

Method Description
Dispose ( ) : void

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

RedisQueueWorkSubRpc ( IRedisConnection connection, RedisNames redisNames, IQueueCancelWork cancelWork, IMessageId messageId ) : System

Initializes a new instance of the RedisQueueWorkSubRpc class.

Reset ( ) : void

Resets this instance.

Wait ( System.TimeSpan timeout ) : bool

Waits until a notification is received, or until the timeout is reached

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
Handler ( RedisChannel redisChannel, RedisValue redisValue ) : void

Handlers the specified redis channel.

Setup ( ) : void

Setups this instance.

SubscribeForNotification ( ) : void

Subscribes for notification.

Method Details

Dispose() public method

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged 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

RedisQueueWorkSubRpc() public method

Initializes a new instance of the RedisQueueWorkSubRpc class.
public RedisQueueWorkSubRpc ( IRedisConnection connection, RedisNames redisNames, IQueueCancelWork cancelWork, IMessageId messageId ) : System
connection IRedisConnection The connection.
redisNames RedisNames The redis names.
cancelWork IQueueCancelWork The cancel work.
messageId IMessageId The message identifier.
return System

Reset() public method

Resets this instance.
public Reset ( ) : void
return void

ThrowIfDisposed() protected method

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

Wait() public method

Waits until a notification is received, or until the timeout is reached
public Wait ( System.TimeSpan timeout ) : bool
timeout System.TimeSpan The timeout. Null means no timeout.
return bool