ICommunicationClientFactory<TCommunicationClient>.ReportOperationExceptionAsync Methode
Definition
Wichtig
Einige Informationen beziehen sich auf Vorabversionen, die vor dem Release ggf. grundlegend überarbeitet werden. Microsoft übernimmt hinsichtlich der hier bereitgestellten Informationen keine Gewährleistungen, seien sie ausdrücklich oder konkludent.
Behandelt die Ausnahmen, die im CommunicationClient auftreten, wenn eine Nachricht an den Dienst gesendet wird
public System.Threading.Tasks.Task<Microsoft.ServiceFabric.Services.Communication.Client.OperationRetryControl> ReportOperationExceptionAsync (TCommunicationClient client, Microsoft.ServiceFabric.Services.Communication.Client.ExceptionInformation exceptionInformation, Microsoft.ServiceFabric.Services.Communication.Client.OperationRetrySettings retrySettings, System.Threading.CancellationToken cancellationToken);
abstract member ReportOperationExceptionAsync : 'CommunicationClient * Microsoft.ServiceFabric.Services.Communication.Client.ExceptionInformation * Microsoft.ServiceFabric.Services.Communication.Client.OperationRetrySettings * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.ServiceFabric.Services.Communication.Client.OperationRetryControl>
Public Function ReportOperationExceptionAsync (client As TCommunicationClient, exceptionInformation As ExceptionInformation, retrySettings As OperationRetrySettings, cancellationToken As CancellationToken) As Task(Of OperationRetryControl)
Parameter
- client
- TCommunicationClient
Kommunikationsclient
- exceptionInformation
- ExceptionInformation
Informationen zu Ausnahmen, die während der Kommunikation mit dem Dienst aufgetreten sind.
- retrySettings
- OperationRetrySettings
Gibt die Wiederholungsrichtlinie an, die für die Behandlung der gemeldeten Ausnahme verwendet werden soll.
- cancellationToken
- CancellationToken
Abbruchtoken
Gibt zurück
Ein Task , der einen ausstehenden Vorgang darstellt. Das Ergebnis der Aufgabe ist ein OperationRetryControl -Objekt, das Informationen zur Wiederholungsrichtlinie für diese Ausnahme bereitstellt.
Gilt für:
Azure SDK for .NET
Feedback
https://aka.ms/ContentUserFeedback.
Bald verfügbar: Im Laufe des Jahres 2024 werden wir GitHub-Issues stufenweise als Feedbackmechanismus für Inhalte abbauen und durch ein neues Feedbacksystem ersetzen. Weitere Informationen finden Sie unterFeedback senden und anzeigen für