Show / Hide Table of Contents

    Class EndpointMetadataInterceptor

    Appends the EndpointMetadata from an IEndpoint to a service's ListenerMetadata when it's started.

    Inheritance
    System.Object
    EndpointMetadataInterceptor
    Namespace: Copper.Service.Interceptors
    Assembly: Copper.Service.dll
    Syntax
    public class EndpointMetadataInterceptor : IAsyncInterceptor

    Constructors

    View Source

    EndpointMetadataInterceptor(ListenerMetadata, ServiceMetadata)

    Initializes a new instance of the EndpointMetadataInterceptor class.

    Declaration
    public EndpointMetadataInterceptor(ListenerMetadata listenerMetadata, ServiceMetadata serviceMetadata = null)
    Parameters
    Type Name Description
    ListenerMetadata listenerMetadata

    The service's listener metadata.

    ServiceMetadata serviceMetadata

    The service's service metadata.

    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.

    • View Source
    Back to top Generated by DocFX