Freigeben über


CommunicationClientFactoryBase<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>
override this.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 zur Ausnahme, die bei der Kommunikation mit dem Dienst aufgetreten ist.

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 des Tasks ist ein OperationRetryControl -Objekt, das bestimmt, wie die Wiederholungsrichtlinie für diese Ausnahme festgelegt wird.

Implementiert

Gilt für: