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\u003eThe latest version of the \u003ccode\u003eChannelPool\u003c/code\u003e class is 4.10.0, found within the \u003ccode\u003eGoogle.Api.Gax.Grpc\u003c/code\u003e namespace.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eChannelPool\u003c/code\u003e is a thread-safe class that manages a pool of channels for the same service but with different endpoints, each endpoint having a dedicated channel, and all created channels utilize default application credentials.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eChannelPool\u003c/code\u003e class inherits from \u003ccode\u003eobject\u003c/code\u003e and includes members like \u003ccode\u003eEquals\u003c/code\u003e, \u003ccode\u003eGetHashCode\u003c/code\u003e, \u003ccode\u003eGetType\u003c/code\u003e, \u003ccode\u003eReferenceEquals\u003c/code\u003e, and \u003ccode\u003eToString\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eChannelPool\u003c/code\u003e constructor requires \u003ccode\u003eServiceMetadata\u003c/code\u003e to determine scopes and the use of self-signed JWTs.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eShutdownChannelsAsync()\u003c/code\u003e allows asynchronous shutdown of all currently allocated channels without preventing future use of the pool.\u003c/p\u003e\n"]]],[],null,[]]