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"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-04-17 UTC."],[[["ChannelPool 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."],["All channels created by ChannelPool utilize default application credentials."],["ChannelPool can be constructed using service metadata to establish scopes and manage self-signed JWT usage."],["The `ShutdownChannelsAsync()` method allows for asynchronous shutdown of all currently allocated channels, without preventing the pool from being used later."],["ChannelPool inherits various members from the `Object` class, such as `ToString()`, `Equals()`, and `GetHashCode()`."]]],[]]