Partager via


FabricTransportServiceRemotingClientFactory.ReportOperationExceptionAsync Méthode

Définition

Gère les exceptions qui se produisent dans CommunicationClient lors de l’envoi d’un message au service

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)

Paramètres

client
IServiceRemotingClient

Client de communication

exceptionInformation
ExceptionInformation

Informations sur l’exception qui s’est produite lors de la communication avec le service.

retrySettings
OperationRetrySettings

Spécifie la stratégie de nouvelle tentative qui doit être utilisée pour gérer l’exception signalée.

cancellationToken
CancellationToken

Jeton d’annulation

Retours

Tâche qui représente l’opération en suspens. Le résultat de la tâche est un OperationRetryControl objet qui fournit des informations sur la stratégie de nouvelle tentative pour cette exception.

Implémente

S’applique à