public override AsyncClientStreamingCall<TRequest, TResponse> AsyncClientStreamingCall<TRequest, TResponse>(Method<TRequest, TResponse> method, string host, CallOptions options) where TRequest : class where TResponse : class
Invokes a client streaming call asynchronously.
In client streaming scenario, client sends a stream of requests and server responds with a single response.
public override AsyncDuplexStreamingCall<TRequest, TResponse> AsyncDuplexStreamingCall<TRequest, TResponse>(Method<TRequest, TResponse> method, string host, CallOptions options) where TRequest : class where TResponse : class
Invokes a duplex streaming call asynchronously.
In duplex streaming scenario, client sends a stream of requests and server responds with a stream of responses.
The response stream is completely independent and both side can be sending messages at the same time.
public override AsyncServerStreamingCall<TResponse> AsyncServerStreamingCall<TRequest, TResponse>(Method<TRequest, TResponse> method, string host, CallOptions options, TRequest request) where TRequest : class where TResponse : class
Invokes a server streaming call asynchronously.
In server streaming scenario, client sends on request and server responds with a stream of responses.
public override AsyncUnaryCall<TResponse> AsyncUnaryCall<TRequest, TResponse>(Method<TRequest, TResponse> method, string host, CallOptions options, TRequest request) where TRequest : class where TResponse : class
public override TResponse BlockingUnaryCall<TRequest, TResponse>(Method<TRequest, TResponse> method, string host, CallOptions options, TRequest request) where TRequest : class where TResponse : class
Invokes a simple remote call in a blocking fashion.
Shuts down the all channels in the underlying channel pool cleanly. It is strongly
recommended to shutdown all previously created channels before exiting from the process.
[[["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\u003eThe \u003ccode\u003eGcpCallInvoker\u003c/code\u003e class, which inherits from \u003ccode\u003eCallInvoker\u003c/code\u003e, is designed to fan out calls to multiple underlying channels based on request properties.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eGcpCallInvoker\u003c/code\u003e has multiple versions available, with the latest being 4.10.0, and earlier versions going back to 3.2.0.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eGcpCallInvoker\u003c/code\u003e constructor requires parameters such as \u003ccode\u003eServiceMetadata\u003c/code\u003e, \u003ccode\u003etarget\u003c/code\u003e, \u003ccode\u003eChannelCredentials\u003c/code\u003e, \u003ccode\u003eGrpcChannelOptions\u003c/code\u003e, \u003ccode\u003eApiConfig\u003c/code\u003e, and \u003ccode\u003eGrpcAdapter\u003c/code\u003e to initialize a new instance.\u003c/p\u003e\n"],["\u003cp\u003eIt provides methods for various types of asynchronous calls, including \u003ccode\u003eAsyncClientStreamingCall\u003c/code\u003e, \u003ccode\u003eAsyncDuplexStreamingCall\u003c/code\u003e, \u003ccode\u003eAsyncServerStreamingCall\u003c/code\u003e, and \u003ccode\u003eAsyncUnaryCall\u003c/code\u003e, as well as \u003ccode\u003eBlockingUnaryCall\u003c/code\u003e for synchronous calls.\u003c/p\u003e\n"],["\u003cp\u003eThe class features a \u003ccode\u003eShutdownAsync\u003c/code\u003e method, which is recommended for cleaning up and shutting down all channels in the underlying channel pool before exiting the process.\u003c/p\u003e\n"]]],[],null,["# Class GcpCallInvoker (4.10.0)\n\nVersion latestkeyboard_arrow_down\n\n- [4.10.0 (latest)](/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.Gcp.GcpCallInvoker)\n- [4.8.0](/dotnet/docs/reference/Google.Api.Gax/4.8.0/Google.Api.Gax.Grpc.Gcp.GcpCallInvoker)\n- [4.4.0](/dotnet/docs/reference/Google.Api.Gax/4.4.0/Google.Api.Gax.Grpc.Gcp.GcpCallInvoker)\n- [4.3.1](/dotnet/docs/reference/Google.Api.Gax/4.3.1/Google.Api.Gax.Grpc.Gcp.GcpCallInvoker)\n- [4.2.0](/dotnet/docs/reference/Google.Api.Gax/4.2.0/Google.Api.Gax.Grpc.Gcp.GcpCallInvoker)\n- [4.0.0](/dotnet/docs/reference/Google.Api.Gax/4.0.0/Google.Api.Gax.Grpc.Gcp.GcpCallInvoker)\n- [3.2.0](/dotnet/docs/reference/Google.Api.Gax/3.2.0/Google.Api.Gax.Grpc.Gcp.GcpCallInvoker) \n\n public sealed class GcpCallInvoker : CallInvoker\n\nCall invoker which can fan calls out to multiple underlying channels\nbased on request properties. \n\nInheritance\n-----------\n\n[object](https://learn.microsoft.com/dotnet/api/system.object) \\\u003e [CallInvoker](https://github.com/grpc/grpc-dotnet/blob/7c43ddb5d68008782dc0dba2d0feaa3ed91a9fb2/src/Grpc.Core.Api/CallInvoker.cs) \\\u003e GcpCallInvoker \n\nInherited Members\n-----------------\n\n[object.Equals(object)](https://learn.microsoft.com/dotnet/api/system.object.equals#system-object-equals(system-object)) \n[object.Equals(object, object)](https://learn.microsoft.com/dotnet/api/system.object.equals#system-object-equals(system-object-system-object)) \n[object.GetHashCode()](https://learn.microsoft.com/dotnet/api/system.object.gethashcode) \n[object.GetType()](https://learn.microsoft.com/dotnet/api/system.object.gettype) \n[object.ReferenceEquals(object, object)](https://learn.microsoft.com/dotnet/api/system.object.referenceequals) \n[object.ToString()](https://learn.microsoft.com/dotnet/api/system.object.tostring)\n\nNamespace\n---------\n\n[Google.Api.Gax.Grpc.Gcp](/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.Gcp)\n\nAssembly\n--------\n\nGoogle.Api.Gax.Grpc.dll\n\nConstructors\n------------\n\n### GcpCallInvoker(ServiceMetadata, string, ChannelCredentials, GrpcChannelOptions, ApiConfig, GrpcAdapter)\n\n public GcpCallInvoker(ServiceMetadata serviceMetadata, string target, ChannelCredentials credentials, GrpcChannelOptions options, ApiConfig apiConfig, GrpcAdapter adapter)\n\nInitializes a new instance.\n\nMethods\n-------\n\n### AsyncClientStreamingCall\\\u003cTRequest, TResponse\\\u003e(Method\\\u003cTRequest, TResponse\\\u003e, string, CallOptions)\n\n public override AsyncClientStreamingCall\u003cTRequest, TResponse\u003e AsyncClientStreamingCall\u003cTRequest, TResponse\u003e(Method\u003cTRequest, TResponse\u003e method, string host, CallOptions options) where TRequest : class where TResponse : class\n\nInvokes a client streaming call asynchronously.\nIn client streaming scenario, client sends a stream of requests and server responds with a single response.\n\n**Overrides** \n[CallInvoker.AsyncClientStreamingCall\\\u003cTRequest, TResponse\\\u003e(Method\\\u003cTRequest, TResponse\\\u003e, string, CallOptions)](https://github.com/grpc/grpc-dotnet/blob/7c43ddb5d68008782dc0dba2d0feaa3ed91a9fb2/src/Grpc.Core.Api/CallInvoker.cs)\n\n### AsyncDuplexStreamingCall\\\u003cTRequest, TResponse\\\u003e(Method\\\u003cTRequest, TResponse\\\u003e, string, CallOptions)\n\n public override AsyncDuplexStreamingCall\u003cTRequest, TResponse\u003e AsyncDuplexStreamingCall\u003cTRequest, TResponse\u003e(Method\u003cTRequest, TResponse\u003e method, string host, CallOptions options) where TRequest : class where TResponse : class\n\nInvokes a duplex streaming call asynchronously.\nIn duplex streaming scenario, client sends a stream of requests and server responds with a stream of responses.\nThe response stream is completely independent and both side can be sending messages at the same time.\n\n**Overrides** \n[CallInvoker.AsyncDuplexStreamingCall\\\u003cTRequest, TResponse\\\u003e(Method\\\u003cTRequest, TResponse\\\u003e, string, CallOptions)](https://github.com/grpc/grpc-dotnet/blob/7c43ddb5d68008782dc0dba2d0feaa3ed91a9fb2/src/Grpc.Core.Api/CallInvoker.cs)\n\n### AsyncServerStreamingCall\\\u003cTRequest, TResponse\\\u003e(Method\\\u003cTRequest, TResponse\\\u003e, string, CallOptions, TRequest)\n\n public override AsyncServerStreamingCall\u003cTResponse\u003e AsyncServerStreamingCall\u003cTRequest, TResponse\u003e(Method\u003cTRequest, TResponse\u003e method, string host, CallOptions options, TRequest request) where TRequest : class where TResponse : class\n\nInvokes a server streaming call asynchronously.\nIn server streaming scenario, client sends on request and server responds with a stream of responses.\n\n**Overrides** \n[CallInvoker.AsyncServerStreamingCall\\\u003cTRequest, TResponse\\\u003e(Method\\\u003cTRequest, TResponse\\\u003e, string, CallOptions, TRequest)](https://github.com/grpc/grpc-dotnet/blob/7c43ddb5d68008782dc0dba2d0feaa3ed91a9fb2/src/Grpc.Core.Api/CallInvoker.cs)\n\n### AsyncUnaryCall\\\u003cTRequest, TResponse\\\u003e(Method\\\u003cTRequest, TResponse\\\u003e, string, CallOptions, TRequest)\n\n public override AsyncUnaryCall\u003cTResponse\u003e AsyncUnaryCall\u003cTRequest, TResponse\u003e(Method\u003cTRequest, TResponse\u003e method, string host, CallOptions options, TRequest request) where TRequest : class where TResponse : class\n\nInvokes a simple remote call asynchronously.\n\n**Overrides** \n[CallInvoker.AsyncUnaryCall\\\u003cTRequest, TResponse\\\u003e(Method\\\u003cTRequest, TResponse\\\u003e, string, CallOptions, TRequest)](https://github.com/grpc/grpc-dotnet/blob/7c43ddb5d68008782dc0dba2d0feaa3ed91a9fb2/src/Grpc.Core.Api/CallInvoker.cs)\n\n### BlockingUnaryCall\\\u003cTRequest, TResponse\\\u003e(Method\\\u003cTRequest, TResponse\\\u003e, string, CallOptions, TRequest)\n\n public override TResponse BlockingUnaryCall\u003cTRequest, TResponse\u003e(Method\u003cTRequest, TResponse\u003e method, string host, CallOptions options, TRequest request) where TRequest : class where TResponse : class\n\nInvokes a simple remote call in a blocking fashion.\n\n**Overrides** \n[CallInvoker.BlockingUnaryCall\\\u003cTRequest, TResponse\\\u003e(Method\\\u003cTRequest, TResponse\\\u003e, string, CallOptions, TRequest)](https://github.com/grpc/grpc-dotnet/blob/7c43ddb5d68008782dc0dba2d0feaa3ed91a9fb2/src/Grpc.Core.Api/CallInvoker.cs)\n\n### ShutdownAsync()\n\n public Task ShutdownAsync()\n\nShuts down the all channels in the underlying channel pool cleanly. It is strongly\nrecommended to shutdown all previously created channels before exiting from the process."]]