Note

Access to this page requires authorization. You can try signing in or .

Access to this page requires authorization. You can try .

ServiceBusProcessor.ProcessMessageAsync Event

Definition

Namespace:
Azure.Messaging.ServiceBus
Assembly:
Azure.Messaging.ServiceBus.dll
Package:
Azure.Messaging.ServiceBus v7.20.1
Package:
Azure.Messaging.ServiceBus v7.18.0-beta.1
Source:
ServiceBusProcessor.cs
Source:
ServiceBusProcessor.cs

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.

The handler responsible for processing messages received from the Queue or Subscription. Implementation is mandatory.

public event Func<Azure.Messaging.ServiceBus.ProcessMessageEventArgs,System.Threading.Tasks.Task> ProcessMessageAsync;
member this.ProcessMessageAsync : Func<Azure.Messaging.ServiceBus.ProcessMessageEventArgs, System.Threading.Tasks.Task> 
Public Custom Event ProcessMessageAsync As Func(Of ProcessMessageEventArgs, Task) 

Event Type

Remarks

It is not recommended that the state of the processor be managed directly from within this handler; requesting to start or stop the processor may result in a deadlock scenario.

Applies to


Feedback

Was this page helpful?