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

Méthodes publiques

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

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

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

RedisQueueWorkSubRpc() public méthode

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

Reset() public méthode

Resets this instance.
public Reset ( ) : void
Résultat void

ThrowIfDisposed() protected méthode

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

Wait() public méthode

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