Compartir a través de


FabricTransportServiceRemotingClientFactory.ReportOperationExceptionAsync Método

Definición

Controla las excepciones que se producen en CommunicationClient al enviar un mensaje al servicio.

public System.Threading.Tasks.Task<Microsoft.ServiceFabric.Services.Communication.Client.OperationRetryControl> ReportOperationExceptionAsync (Microsoft.ServiceFabric.Services.Remoting.V2.Client.IServiceRemotingClient client, Microsoft.ServiceFabric.Services.Communication.Client.ExceptionInformation exceptionInformation, Microsoft.ServiceFabric.Services.Communication.Client.OperationRetrySettings retrySettings, System.Threading.CancellationToken cancellationToken);
abstract member ReportOperationExceptionAsync : Microsoft.ServiceFabric.Services.Remoting.V2.Client.IServiceRemotingClient * 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 : Microsoft.ServiceFabric.Services.Remoting.V2.Client.IServiceRemotingClient * 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 IServiceRemotingClient, exceptionInformation As ExceptionInformation, retrySettings As OperationRetrySettings, cancellationToken As CancellationToken) As Task(Of OperationRetryControl)

Parámetros

client
IServiceRemotingClient

Cliente de comunicación

exceptionInformation
ExceptionInformation

Información sobre la excepción que se produjo al comunicarse con el servicio.

retrySettings
OperationRetrySettings

Especifica la directiva de reintento que se debe usar para controlar la excepción notificada.

cancellationToken
CancellationToken

Token de cancelación

Devoluciones

Tarea que representa una operación pendiente. El resultado de la tarea es un OperationRetryControl objeto que proporciona información sobre la directiva de reintento para esta excepción.

Implementaciones

Se aplica a