MessageProcessor Class

Definition

This class defines a strategy used for processing Service Bus messages.

C#
public class MessageProcessor
Inheritance
MessageProcessor

Constructors

Properties

MessageOptions
MessageReceiver
Processor

Gets or sets the ServiceBusProcessor that will be used by the Processor.

Methods

BeginProcessingMessageAsync(Message, CancellationToken)
BeginProcessingMessageAsync(ServiceBusMessageActions, ServiceBusReceivedMessage, CancellationToken)

This method is called when there is a new message to process, before the job function is invoked. This allows any preprocessing to take place on the message before processing begins.

CompleteProcessingMessageAsync(Message, FunctionResult, CancellationToken)
CompleteProcessingMessageAsync(ServiceBusMessageActions, ServiceBusReceivedMessage, FunctionResult, CancellationToken)

This method completes processing of the specified message, after the job function has been invoked.

Applies to

Product Versions
Azure SDK for .NET Legacy, Latest