C# 클래스 EducationPathways.ServiceBus.SubscriptionReceiver

상속: IMessageReceiver, IDisposable
파일 보기 프로젝트 열기: pebblecode/EducationPathways

공개 메소드들

메소드 설명
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