Show / Hide Table of Contents

    Class InterceptorCollection

    Represents the pipeline of interceptors to be invoked when processing a gRPC call.

    Inheritance
    Collection<InterceptorRegistration>
    InterceptorCollection
    Namespace: Grpc.AspNetCore.Server
    Assembly: Grpc.AspNetCore.Server.dll
    Syntax
    public class InterceptorCollection : Collection<InterceptorRegistration>

    Methods

    Add(Type, Object[])

    Add an interceptor to the end of the pipeline.

    Declaration
    public void Add(Type interceptorType, params object[] args)
    Parameters
    Type Name Description
    Type interceptorType

    The interceptor type.

    System.Object[] args

    The list of arguments to pass to the interceptor constructor when creating an instance.

    Add<TInterceptor>(Object[])

    Add an interceptor to the end of the pipeline.

    Declaration
    public void Add<TInterceptor>(params object[] args)
        where TInterceptor : Interceptor
    Parameters
    Type Name Description
    System.Object[] args

    The list of arguments to pass to the interceptor constructor when creating an instance.

    Type Parameters
    Name Description
    TInterceptor

    The interceptor type.

    Back to top Generated by DocFX