C# Класс EducationPathways.ServiceBus.Handling.MessageProcessor

Provides basic common processing code for components that handle incoming messages from a receiver.
Наследование: IProcessor, IDisposable
Показать файл Открыть проект

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

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

Disposes the resources used by the processor.

Start ( ) : void

Starts the listener.

Stop ( ) : void

Stops the listener.

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

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

Disposes the resources used by the processor.

MessageProcessor ( IMessageReceiver receiver, ITextSerializer serializer ) : System

Initializes a new instance of the MessageProcessor class.

ProcessMessage ( string traceIdentifier, object payload, string messageId, string correlationId ) : void

Processes the message.

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

Метод Описание
BuildTraceIdentifier ( BrokeredMessage message ) : string
CompleteMessage ( BrokeredMessage message, string traceIdentifier ) : MessageReleaseAction
HandleProcessingException ( BrokeredMessage message, string traceIdentifier, Exception e ) : MessageReleaseAction
OnMessageReceived ( BrokeredMessage message ) : MessageReleaseAction
ThrowIfDisposed ( ) : void

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

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

Disposes the resources used by the processor.
public Dispose ( ) : void
Результат void

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

Disposes the resources used by the processor.
protected Dispose ( bool disposing ) : void
disposing bool
Результат void

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

Initializes a new instance of the MessageProcessor class.
protected MessageProcessor ( IMessageReceiver receiver, ITextSerializer serializer ) : System
receiver IMessageReceiver
serializer ITextSerializer
Результат System

ProcessMessage() защищенный абстрактный Метод

Processes the message.
protected abstract ProcessMessage ( string traceIdentifier, object payload, string messageId, string correlationId ) : void
traceIdentifier string The identifier that can be used to track the source message in the logs.
payload object The typed message payload.
messageId string The message id.
correlationId string The message correlation id.
Результат void

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

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

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

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