public delegate AsyncUnaryCall<TResponse> Interceptor.AsyncUnaryCallContinuation<TRequest, TResponse>(TRequest request, ClientInterceptorContext<TRequest, TResponse> context) where TRequest : class where TResponse : class
Represents a continuation for intercepting simple asynchronous invocations.
A delegate of this type is passed to the AsyncUnaryCall 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
request value and context as it sees fit.
An instance of AsyncUnaryCall<TResponse>
representing an asynchronous invocation of a unary RPC.
The interceptor can choose to return the same object returned from
the continuation delegate or an arbitrarily constructed instance 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 document describes the \u003ccode\u003eAsyncUnaryCallContinuation\u003c/code\u003e delegate, which is used to intercept simple asynchronous invocations in gRPC.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eAsyncUnaryCallContinuation\u003c/code\u003e delegate is passed to the \u003ccode\u003eAsyncUnaryCall\u003c/code\u003e method and is responsible for invoking the next interceptor in the chain or the underlying call invoker.\u003c/p\u003e\n"],["\u003cp\u003eThe delegate takes two parameters: \u003ccode\u003erequest\u003c/code\u003e which represents the request value, and \u003ccode\u003econtext\u003c/code\u003e which provides the \u003ccode\u003eClientInterceptorContext\u003c/code\u003e for the invocation.\u003c/p\u003e\n"],["\u003cp\u003eThe delegate returns an \u003ccode\u003eAsyncUnaryCall\u003c/code\u003e instance that represents the asynchronous unary RPC invocation, allowing the interceptor to return either the same object from the continuation or a custom instance.\u003c/p\u003e\n"],["\u003cp\u003eThe delegate has two type parameters: \u003ccode\u003eTRequest\u003c/code\u003e which is the request message type, and \u003ccode\u003eTResponse\u003c/code\u003e which represents the response message type.\u003c/p\u003e\n"]]],[],null,[]]