C# Class EducationPathways.ServiceBus.Handling.MessageProcessor

Provides basic common processing code for components that handle incoming messages from a receiver.
Inheritance: IProcessor, IDisposable
Afficher le fichier Open project: pebblecode/EducationPathways

Méthodes publiques

Méthode Description
Dispose ( ) : void

Disposes the resources used by the processor.

Start ( ) : void

Starts the listener.

Stop ( ) : void

Stops the listener.

Méthodes protégées

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

Private Methods

Méthode Description
BuildTraceIdentifier ( BrokeredMessage message ) : string
CompleteMessage ( BrokeredMessage message, string traceIdentifier ) : MessageReleaseAction
HandleProcessingException ( BrokeredMessage message, string traceIdentifier, Exception e ) : MessageReleaseAction
OnMessageReceived ( BrokeredMessage message ) : MessageReleaseAction
ThrowIfDisposed ( ) : void

Method Details

Dispose() public méthode

Disposes the resources used by the processor.
public Dispose ( ) : void
Résultat void

Dispose() protected méthode

Disposes the resources used by the processor.
protected Dispose ( bool disposing ) : void
disposing bool
Résultat void

MessageProcessor() protected méthode

Initializes a new instance of the MessageProcessor class.
protected MessageProcessor ( IMessageReceiver receiver, ITextSerializer serializer ) : System
receiver IMessageReceiver
serializer ITextSerializer
Résultat System

ProcessMessage() protected abstract méthode

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

Start() public méthode

Starts the listener.
public Start ( ) : void
Résultat void

Stop() public méthode

Stops the listener.
public Stop ( ) : void
Résultat void