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 scopes to apply. Must not be null, and must not contain null references. May be empty.
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 \u003ccode\u003eChannelPool\u003c/code\u003e class manages a pool of channels for a service, each with a potentially different endpoint.\u003c/p\u003e\n"],["\u003cp\u003eAll channels in the pool use default application credentials.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eChannelPool\u003c/code\u003e constructor allows the specification of scopes to be applied to the default application credentials.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eShutdownChannelsAsync()\u003c/code\u003e method asynchronously shuts down all currently allocated channels, allowing the pool to still be used afterward.\u003c/p\u003e\n"],["\u003cp\u003eThe class \u003ccode\u003eChannelPool\u003c/code\u003e is thread safe.\u003c/p\u003e\n"]]],[],null,[]]