A pool of channels for the same service, but with potentially different endpoints. Each endpoint
has a single channel. All channels created by this pool use default application credentials.
This class is thread-safe.
The metadata for the service that this pool will be used with. Must not be null.
Methods
ShutdownChannelsAsync()
public Task ShutdownChannelsAsync()
Shuts down all the currently-allocated channels asynchronously. This does not prevent the channel
pool from being used later on, but the currently-allocated channels will not be reused.
[[["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 webpage details the \u003ccode\u003eChannelPool\u003c/code\u003e class, a thread-safe utility for managing channels to the same service but with different endpoints, within the Google.Api.Gax.Grpc namespace.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eChannelPool\u003c/code\u003e class uses default application credentials for all channels and provides a constructor that accepts \u003ccode\u003eServiceMetadata\u003c/code\u003e to configure service scopes and self-signed JWT usage.\u003c/p\u003e\n"],["\u003cp\u003eThe class offers a \u003ccode\u003eShutdownChannelsAsync()\u003c/code\u003e method, enabling asynchronous shutdown of currently allocated channels without preventing future use of the pool.\u003c/p\u003e\n"],["\u003cp\u003eThe page also lists various versions of the \u003ccode\u003eChannelPool\u003c/code\u003e class, ranging from the latest 4.10.0 down to 3.2.0, allowing users to navigate and access the appropriate version of the documentation.\u003c/p\u003e\n"]]],[],null,[]]