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.
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.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-03-21 UTC."],[[["This content details the `BlockingUnaryCallContinuation` delegate, which is used to intercept simple blocking invocations within the gRPC framework."],["The delegate is defined as `public delegate TResponse Interceptor.BlockingUnaryCallContinuation\u003cTRequest, TResponse\u003e(TRequest request, ClientInterceptorContext\u003cTRequest, TResponse\u003e context)` where `TRequest` and `TResponse` are generic types representing the request and response messages."],["Interceptors can use this delegate to modify the request, response, or the invocation process by calling it zero, one, or multiple times with updated values."],["The `BlockingUnaryCallContinuation` delegate is part of the `Grpc.Core.Interceptors` namespace, located within the `Grpc.Core.Api.dll` assembly."],["The `request` parameter is the request value, and the `context` parameter is the `ClientInterceptorContext` for passing to the next step in the invocation process, and the delegate returns a `TResponse` object."]]],[]]