ServiceBusSessionProcessor.OnProcessErrorAsync(ProcessErrorEventArgs) Method
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.
Invokes the error event handler when an error has occurred during processing. This method can be overridden to raise an event manually for testing purposes.
C#
protected internal virtual System.Threading.Tasks.Task OnProcessErrorAsync(Azure.Messaging.ServiceBus.ProcessErrorEventArgs args);
abstract member OnProcessErrorAsync : Azure.Messaging.ServiceBus.ProcessErrorEventArgs -> System.Threading.Tasks.Task
override this.OnProcessErrorAsync : Azure.Messaging.ServiceBus.ProcessErrorEventArgs -> System.Threading.Tasks.Task
Protected Friend Overridable Function OnProcessErrorAsync (args As ProcessErrorEventArgs) As Task
The event args containing information related to the error.
Product | Versions |
---|---|
Azure SDK for .NET | Latest, Preview |
Collaborate with us on GitHub
The source for this content can be found on GitHub, where you can also create and review issues and pull requests. For more information, see our contributor guide.
Azure SDK for .NET feedback
Azure SDK for .NET is an open source project. Select a link to provide feedback: