public sealed class ChannelPool
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.
Namespace
GoogleGoogle.ApiGaxGrpcAssembly
Google.Api.Gax.Grpc.dll
Constructors
ChannelPool(ServiceMetadata)
public ChannelPool(ServiceMetadata serviceMetadata)
Creates a channel pool which will use the given service metadata to determine scopes and the use of self-signed JWTs.
Parameter | |
---|---|
Name | Description |
serviceMetadata | ServiceMetadata 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.
Returns | |
---|---|
Type | Description |
Task | A task which will complete when all the (current) channels have been shut down. |