Share via


SessionMessageProcessor.BeginProcessingMessageAsync Method

Definition

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.

cancellationToken
CancellationToken

The CancellationToken to use.

Returns

A Task that returns true if the message processing should continue, false otherwise.

Applies to