MessageHandlerOptions(Func<ExceptionReceivedEventArgs,Task>) Constructor
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.
Initializes a new instance of the MessageHandlerOptions class. Default Values: MaxConcurrentCalls = 1 AutoComplete = true Microsoft.Azure.ServiceBus.MessageHandlerOptions.ReceiveTimeOut = 1 minute MaxAutoRenewDuration = 5 minutes
public MessageHandlerOptions (Func<Microsoft.Azure.ServiceBus.ExceptionReceivedEventArgs,System.Threading.Tasks.Task> exceptionReceivedHandler);
new Microsoft.Azure.ServiceBus.MessageHandlerOptions : Func<Microsoft.Azure.ServiceBus.ExceptionReceivedEventArgs, System.Threading.Tasks.Task> -> Microsoft.Azure.ServiceBus.MessageHandlerOptions
Public Sub New (exceptionReceivedHandler As Func(Of ExceptionReceivedEventArgs, Task))
Parameters
- exceptionReceivedHandler
- Func<ExceptionReceivedEventArgs,Task>
A Func<T,TResult> that is invoked during exceptions. ExceptionReceivedEventArgs contains contextual information regarding the exception.
Applies to
Commenti e suggerimenti
https://aka.ms/ContentUserFeedback.
Presto disponibile: Nel corso del 2024 verranno gradualmente disattivati i problemi di GitHub come meccanismo di feedback per il contenuto e ciò verrà sostituito con un nuovo sistema di feedback. Per altre informazioni, vedereInvia e visualizza il feedback per