C# Класс DotNetWorkQueue.Transport.Redis.Basic.RedisQueueWorkSubRpc

Allows a caller to wait and block until a pub/sub call has occurred for a specific message id
Наследование: IRedisQueueWorkSub
Показать файл Открыть проект

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

Метод Описание
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

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

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

Releases unmanaged and - optionally - managed resources.

ThrowIfDisposed ( [ name = "" ) : void

Throws an exception if this instance has been disposed.

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

Метод Описание
Handler ( RedisChannel redisChannel, RedisValue redisValue ) : void

Handlers the specified redis channel.

Setup ( ) : void

Setups this instance.

SubscribeForNotification ( ) : void

Subscribes for notification.

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

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

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

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

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

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

Resets this instance.
public Reset ( ) : void
Результат void

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

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

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

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