SessionMessageProcessor.BeginProcessingMessageAsync Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.
protected internal virtual System.Threading.Tasks.Task<bool> BeginProcessingMessageAsync (Microsoft.Azure.WebJobs.ServiceBus.ServiceBusSessionMessageActions actions, Azure.Messaging.ServiceBus.ServiceBusReceivedMessage message, System.Threading.CancellationToken cancellationToken);
abstract member BeginProcessingMessageAsync : Microsoft.Azure.WebJobs.ServiceBus.ServiceBusSessionMessageActions * Azure.Messaging.ServiceBus.ServiceBusReceivedMessage * System.Threading.CancellationToken -> System.Threading.Tasks.Task<bool>
override this.BeginProcessingMessageAsync : Microsoft.Azure.WebJobs.ServiceBus.ServiceBusSessionMessageActions * Azure.Messaging.ServiceBus.ServiceBusReceivedMessage * System.Threading.CancellationToken -> System.Threading.Tasks.Task<bool>
Protected Friend Overridable Function BeginProcessingMessageAsync (actions As ServiceBusSessionMessageActions, message As ServiceBusReceivedMessage, cancellationToken As CancellationToken) As Task(Of Boolean)
Parameters
- actions
- ServiceBusSessionMessageActions
The set of actions that can be performed on a ServiceBusReceivedMessage.
- message
- ServiceBusReceivedMessage
The ServiceBusReceivedMessage to process.
- cancellationToken
- CancellationToken
The CancellationToken to use.
Returns
A Task that returns true if the message processing should continue, false otherwise.
Applies to
Azure SDK for .NET