The type of the expected source request. Specifying this explicitly
is usually sufficient to allow type inference to work for generic methods within this class.
public static CallInvoker Create<TSourceResponse, TTargetRequest, TTargetResponse>(CallInvoker originalInvoker, string sourceMethodFullName, Method<TTargetRequest, TTargetResponse> targetMethod, Func<TSourceRequest, TTargetRequest> requestConverter, Func<TSourceRequest, TTargetResponse, TSourceResponse> responseConverter)
where TSourceResponse : class where TTargetRequest : class where TTargetResponse : class
Creates a Google.Api.Gax.Grpc.ForwardingCallInvoker`4
to forward a single unary call to a method in an existing .
Parameters
Name
Description
originalInvoker
CallInvoker
The original invoker that will handle the request.
[[["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 documentation pertains to version 4.2.0 of the \u003ccode\u003eForwardingCallInvoker<TSourceRequest>\u003c/code\u003e class, which is designed for generic type inference to simplify constructing instances of \u003ccode\u003eGoogle.Api.Gax.Grpc.ForwardingCallInvoker\u003c/code\u003e4.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eForwardingCallInvoker<TSourceRequest>\u003c/code\u003e class inherits from \u003ccode\u003eObject\u003c/code\u003e and offers static methods to manage and forward requests within the \u003ccode\u003eGoogle.Api.Gax.Grpc\u003c/code\u003e namespace.\u003c/p\u003e\n"],["\u003cp\u003eThe class provides a \u003ccode\u003eCreate\u003c/code\u003e method for forwarding a unary call from a source method to a target method, handling request and response conversions between the source and target types.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eCreate\u003c/code\u003e method takes parameters like the \u003ccode\u003eoriginalInvoker\u003c/code\u003e, \u003ccode\u003esourceMethodFullName\u003c/code\u003e, \u003ccode\u003etargetMethod\u003c/code\u003e, \u003ccode\u003erequestConverter\u003c/code\u003e and \u003ccode\u003eresponseConverter\u003c/code\u003e to redirect the call.\u003c/p\u003e\n"],["\u003cp\u003eType parameters \u003ccode\u003eTSourceResponse\u003c/code\u003e, \u003ccode\u003eTTargetRequest\u003c/code\u003e, and \u003ccode\u003eTTargetResponse\u003c/code\u003e define the types involved in the forwarding, where the source and target responses and requests are declared.\u003c/p\u003e\n"]]],[],null,[]]