Namespace Grpc.Core.Interceptors (2.48.0)

Classes

CallInvokerExtensions

Extends the CallInvoker class to provide the interceptor facility on the client side.

ChannelExtensions

Provides extension methods to make it easy to register interceptors on Channel objects.

Interceptor

Serves as the base class for gRPC interceptors.

Structs

ClientInterceptorContext<TRequest, TResponse>

Carries along the context associated with intercepted invocations on the client side.

Delegates

Interceptor.AsyncClientStreamingCallContinuation<TRequest, TResponse>

Represents a continuation for intercepting asynchronous client-streaming invocations. A delegate of this type is passed to the AsyncClientStreamingCall method when an outgoing invocation is being intercepted and calling the delegate will invoke the next interceptor in the chain, or the underlying call invoker if called from the last interceptor. The interceptor is allowed to call it zero, one, or multiple times, passing it the appropriate request value and context as it sees fit.

Interceptor.AsyncDuplexStreamingCallContinuation<TRequest, TResponse>

Represents a continuation for intercepting asynchronous duplex invocations. A delegate of this type is passed to the AsyncDuplexStreamingCall method when an outgoing invocation is being intercepted and calling the delegate will invoke the next interceptor in the chain, or the underlying call invoker if called from the last interceptor. The interceptor is allowed to call it zero, one, or multiple times, passing it the appropriate request value and context as it sees fit.

Interceptor.AsyncServerStreamingCallContinuation<TRequest, TResponse>

Represents a continuation for intercepting asynchronous server-streaming invocations. A delegate of this type is passed to the AsyncServerStreamingCall method when an outgoing invocation is being intercepted and calling the delegate will invoke the next interceptor in the chain, or the underlying call invoker if called from the last interceptor. The interceptor is allowed to call it zero, one, or multiple times, passing it the appropriate request value and context as it sees fit.

Interceptor.AsyncUnaryCallContinuation<TRequest, TResponse>

Represents a continuation for intercepting simple asynchronous invocations. A delegate of this type is passed to the AsyncUnaryCall method when an outgoing invocation is being intercepted and calling the delegate will invoke the next interceptor in the chain, or the underlying call invoker if called from the last interceptor. The interceptor is allowed to call it zero, one, or multiple times, passing it the appropriate request value and context as it sees fit.

Interceptor.BlockingUnaryCallContinuation<TRequest, TResponse>

Represents a continuation for intercepting simple blocking invocations. A delegate of this type is passed to the BlockingUnaryCall method when an outgoing invocation is being intercepted and calling the delegate will invoke the next interceptor in the chain, or the underlying call invoker if called from the last interceptor. The interceptor is allowed to call it zero, one, or multiple times, passing it the appropriate context and request values as it sees fit.