Show / Hide Table of Contents

    Class FaultContractReceiveInterceptor

    Catches a service exception and throws it as a or , depending on the service contract.

    Inheritance
    System.Object
    FaultContractReceiveInterceptor
    Implements
    IFrameworkReceiveInterceptor
    IAsyncInterceptor
    Namespace: Copper.Service.Interceptors
    Assembly: Copper.Service.dll
    Syntax
    public class FaultContractReceiveInterceptor : IFrameworkReceiveInterceptor, IAsyncInterceptor

    Constructors

    View Source

    FaultContractReceiveInterceptor(IOptionsMonitor<FaultContractReceiveInterceptorOptions>)

    Initializes a new instance of the FaultContractReceiveInterceptor class.

    Declaration
    public FaultContractReceiveInterceptor(IOptionsMonitor<FaultContractReceiveInterceptorOptions> options)
    Parameters
    Type Name Description
    IOptionsMonitor<FaultContractReceiveInterceptorOptions> options

    The options.

    Methods

    View Source

    InterceptAsynchronous(IInvocation)

    Intercepts an asynchronous method invocation with return type of System.Threading.Tasks.Task.

    Declaration
    public void InterceptAsynchronous(IInvocation invocation)
    Parameters
    Type Name Description
    IInvocation invocation

    The method invocation.

    View Source

    InterceptAsynchronous<TResult>(IInvocation)

    Intercepts an asynchronous method invocation with return type of System.Threading.Tasks.Task<TResult>.

    Declaration
    public void InterceptAsynchronous<TResult>(IInvocation invocation)
    Parameters
    Type Name Description
    IInvocation invocation

    The method invocation.

    Type Parameters
    Name Description
    TResult

    The type of the System.Threading.Tasks.Task<TResult> result.

    View Source

    InterceptSynchronous(IInvocation)

    Intercepts a synchronous method invocation.

    Declaration
    public void InterceptSynchronous(IInvocation invocation)
    Parameters
    Type Name Description
    IInvocation invocation

    The method invocation.

    Implements

    IFrameworkReceiveInterceptor
    IAsyncInterceptor
    • View Source
    In This Article
    • Constructors
      • FaultContractReceiveInterceptor(IOptionsMonitor<FaultContractReceiveInterceptorOptions>)
    • Methods
      • InterceptAsynchronous(IInvocation)
      • InterceptAsynchronous<TResult>(IInvocation)
      • InterceptSynchronous(IInvocation)
    • Implements
    Back to top Generated by DocFX