Compartir a través de


ServiceRemotingExceptionHandler Clase

Definición

Proporciona el control de excepciones detectadas al comunicarse con un servicio de Service Fabric a través de interfaces remotas.

public class ServiceRemotingExceptionHandler : Microsoft.ServiceFabric.Services.Communication.Client.IExceptionHandler
type ServiceRemotingExceptionHandler = class
    interface IExceptionHandler
Public Class ServiceRemotingExceptionHandler
Implements IExceptionHandler
Herencia
ServiceRemotingExceptionHandler
Implementaciones

Comentarios

Las excepciones se controlan según la descripción siguiente:

Las excepciones siguientes indican la conmutación por error del servicio. Estas excepciones se controlan devolviendo ExceptionHandlingRetryResult desde el TryHandleException(ExceptionInformation, OperationRetrySettings, ExceptionHandlingResult) método . La IsTransient propiedad de ExceptionHandlingRetryResult se establece en false, la RetryDelay propiedad se establece en un valor aleatorio hasta MaxRetryBackoffIntervalOnNonTransientErrors y MaxRetryCount la propiedad se establece en MaxValue.
Las excepciones siguientes indican condiciones de error transitorias y se controlan devolviendo ExceptionHandlingRetryResult desde el TryHandleException(ExceptionInformation, OperationRetrySettings, ExceptionHandlingResult) método . La IsTransient propiedad de ExceptionHandlingRetryResult se establece en true, la RetryDelay propiedad se establece en un valor aleatorio hasta MaxRetryBackoffIntervalOnTransientErrors y MaxRetryCount la propiedad se establece en MaxValue.

Constructores

ServiceRemotingExceptionHandler()

Inicializa una nueva instancia de la ServiceRemotingExceptionHandler clase con un identificador de seguimiento predeterminado.

ServiceRemotingExceptionHandler(String)

Inicializa una nueva instancia de la ServiceRemotingExceptionHandler clase con un identificador de seguimiento especificado.

Implementaciones de interfaz explícitas

IExceptionHandler.TryHandleException(ExceptionInformation, OperationRetrySettings, ExceptionHandlingResult)

Examina la excepción y determina cómo se puede controlar esa excepción.

Se aplica a