public delegate TResponse 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 for intercepting simple blocking gRPC invocations in version 2.48.0 of the Grpc.Core library."],["The `BlockingUnaryCallContinuation` delegate is used within the interceptor chain, allowing interceptors to call it multiple times, once, or not at all while managing the flow of the gRPC invocation."],["This delegate receives a request (`TRequest`) and a `ClientInterceptorContext` which are used to continue the gRPC process."],["The delegate returns a response (`TResponse`), allowing the interceptor to control the value returned to the caller, either from the next step in the invocation chain, or with a custom set value."],["It is part of the `Grpc.Core.Interceptors` namespace and found within the `Grpc.Core.Api.dll` assembly."]]],[]]