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"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-07 UTC."],[[["\u003cp\u003eThis content details the \u003ccode\u003eInterceptor.BlockingUnaryCallContinuation\u003c/code\u003e delegate, which is used for intercepting simple blocking invocations in gRPC.\u003c/p\u003e\n"],["\u003cp\u003eThe delegate receives a \u003ccode\u003erequest\u003c/code\u003e of type \u003ccode\u003eTRequest\u003c/code\u003e and a \u003ccode\u003eClientInterceptorContext\u003c/code\u003e to continue the invocation process, where both the request and response are of generic class type.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eBlockingUnaryCallContinuation\u003c/code\u003e delegate can be called zero, one, or multiple times by an interceptor to invoke the next interceptor or the underlying call invoker.\u003c/p\u003e\n"],["\u003cp\u003eIt returns a response of type \u003ccode\u003eTResponse\u003c/code\u003e, which can either be the result from the next continuation delegate or an arbitrary value chosen by the interceptor.\u003c/p\u003e\n"],["\u003cp\u003eThe documentation provided covers versions 2.66.0, 2.63.0, and 2.48.0 of the \u003ccode\u003eGrpc.Core\u003c/code\u003e package.\u003c/p\u003e\n"]]],[],null,[]]