C# Класс EducationPathways.ServiceBus.SubscriptionReceiver

Наследование: IMessageReceiver, IDisposable
Показать файл Открыть проект

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

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

Stops the listener if it was started previously.

Start ( MessageReleaseAction>.Func messageHandler ) : void

Starts the listener.

Stop ( ) : void

Stops the listener.

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

Метод Описание
Dispose ( bool disposing ) : void
InvokeMessageHandler ( BrokeredMessage message ) : MessageReleaseAction
SubscriptionReceiver ( ServiceBusSettings settings, string topic, string subscription, bool processInParallel, Microsoft.Practices.TransientFaultHandling.RetryStrategy backgroundRetryStrategy ) : System

Initializes a new instance of the SubscriptionReceiver class, automatically creating the topic and subscription if they don't exist.

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

Метод Описание
ReceiveMessages ( CancellationToken cancellationToken ) : void

Receives the messages in an endless asynchronous loop.

ReleaseMessage ( BrokeredMessage msg, MessageReleaseAction releaseAction, long processingElapsedMilliseconds, long schedulingElapsedMilliseconds, Stopwatch roundtripStopwatch ) : void
SubscriptionReceiver ( ServiceBusSettings settings, string topic, string subscription, bool processInParallel = false ) : System

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

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

Stops the listener if it was started previously.
public Dispose ( ) : void
Результат void

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

protected Dispose ( bool disposing ) : void
disposing bool
Результат void

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

protected InvokeMessageHandler ( BrokeredMessage message ) : MessageReleaseAction
message BrokeredMessage
Результат MessageReleaseAction

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

Starts the listener.
public Start ( MessageReleaseAction>.Func messageHandler ) : void
messageHandler MessageReleaseAction>.Func
Результат void

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

Stops the listener.
public Stop ( ) : void
Результат void

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

Initializes a new instance of the SubscriptionReceiver class, automatically creating the topic and subscription if they don't exist.
protected SubscriptionReceiver ( ServiceBusSettings settings, string topic, string subscription, bool processInParallel, Microsoft.Practices.TransientFaultHandling.RetryStrategy backgroundRetryStrategy ) : System
settings ServiceBusSettings
topic string
subscription string
processInParallel bool
backgroundRetryStrategy Microsoft.Practices.TransientFaultHandling.RetryStrategy
Результат System