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 document describes \u003ccode\u003eForwardingCallInvoker<TSourceRequest>\u003c/code\u003e, a non-generic static class designed to facilitate generic type inference for constructing \u003ccode\u003eGoogle.Api.Gax.Grpc.ForwardingCallInvoker\u003c/code\u003e instances.\u003c/p\u003e\n"],["\u003cp\u003eIt includes a method, \u003ccode\u003eCreate<TSourceResponse, TTargetRequest, TTargetResponse>\u003c/code\u003e, that generates a \u003ccode\u003eCallInvoker\u003c/code\u003e capable of forwarding a unary call to a different method, including request and response conversion functionalities.\u003c/p\u003e\n"],["\u003cp\u003eThe class is available in multiple versions, from 3.2.0 to 4.10.0, with 4.3.1 being the current context version, and 4.10.0 being the latest version.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eCreate\u003c/code\u003e method requires parameters like \u003ccode\u003eoriginalInvoker\u003c/code\u003e, \u003ccode\u003esourceMethodFullName\u003c/code\u003e, and \u003ccode\u003etargetMethod\u003c/code\u003e, along with delegates for request and response conversion.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eTSourceRequest\u003c/code\u003e is the expected type for source requests, while \u003ccode\u003eTSourceResponse\u003c/code\u003e, \u003ccode\u003eTTargetRequest\u003c/code\u003e, and \u003ccode\u003eTTargetResponse\u003c/code\u003e represent the types for source responses, target requests, and target responses, respectively.\u003c/p\u003e\n"]]],[],null,[]]