<PackageReference Include="Grpc.Core.Api" Version="2.70.0" />

Grpc.Core.Interceptors.CallInvokerExtensions

public static class CallInvokerExtensions
Extends the CallInvoker class to provide the interceptor facility on the client side.
public static CallInvoker Intercept(this CallInvoker invoker, Interceptor interceptor)

Returns a CallInvoker instance that intercepts the invoker with the given interceptor.

public static CallInvoker Intercept(this CallInvoker invoker, Interceptor[] interceptors)

Returns a CallInvoker instance that intercepts the invoker with the given interceptors.

public static CallInvoker Intercept(this CallInvoker invoker, Func<Metadata, Metadata> interceptor)

Returns a CallInvoker instance that intercepts the invoker with the given interceptor.