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\u003eChannelPool is a thread-safe class that manages a pool of channels for a specific service, potentially with varying endpoints, with each endpoint having a dedicated channel.\u003c/p\u003e\n"],["\u003cp\u003eAll channels created by ChannelPool utilize default application credentials.\u003c/p\u003e\n"],["\u003cp\u003eChannelPool can be constructed using service metadata to establish scopes and manage self-signed JWT usage.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eShutdownChannelsAsync()\u003c/code\u003e method allows for asynchronous shutdown of all currently allocated channels, without preventing the pool from being used later.\u003c/p\u003e\n"],["\u003cp\u003eChannelPool inherits various members from the \u003ccode\u003eObject\u003c/code\u003e class, such as \u003ccode\u003eToString()\u003c/code\u003e, \u003ccode\u003eEquals()\u003c/code\u003e, and \u003ccode\u003eGetHashCode()\u003c/code\u003e.\u003c/p\u003e\n"]]],[],null,[]]