public delegate TResponse Interceptor.BlockingUnaryCallContinuation<TRequest, TResponse>(TRequest request, ClientInterceptorContext<TRequest, TResponse> context) where TRequest : class where TResponse : class
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.
Namespace
Grpc.Core.InterceptorsAssembly
Grpc.Core.Api.dll
Parameters |
|
---|---|
Name | Description |
request |
TRequest The request value to continue the invocation with. |
context |
ClientInterceptorContext The ClientInterceptorContext<TRequest, TResponse> instance to pass to the next step in the invocation process. |
Returns |
|
---|---|
Type | Description |
TResponse |
The response value of the invocation to return to the caller. The interceptor can choose to return the return value of the continuation delegate or an arbitrary value as it sees fit. |
Type Parameters |
|
---|---|
Name | Description |
TRequest |
Request message type for this invocation. |
TResponse |
Response message type for this invocation. |