Freigeben über


ICommunicationClientFactory<TCommunicationClient>.ReportOperationExceptionAsync Methode

Definition

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: