Compartilhar via


WcfServiceRemotingClientFactory.ICommunicationClientFactory<IServiceRemotingClient>.ReportOperationExceptionAsync Método

Definição

Manipula as exceções que ocorrem no CommunicationClient ao enviar uma mensagem para o Serviço

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

Parâmetros

client
Microsoft.ServiceFabric.Services.Remoting.V1.Client.IServiceRemotingClient

Cliente de comunicação

exceptionInformation
ExceptionInformation

Informações sobre a exceção que ocorreu durante a comunicação com o serviço.

retrySettings
OperationRetrySettings

Especifica a política de repetição que deve ser usada para lidar com a exceção relatada.

cancellationToken
CancellationToken

Token de cancelamento

Retornos

Uma Tarefa que representa uma operação pendente. O resultado da Tarefa é um OperationRetryControl objeto que fornece informações sobre a política de repetição para essa exceção.

Implementações

Aplica-se a