Show / Hide Table of Contents

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.

Inheritance
System.Object
ChannelPool
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: Google.Api.Gax.Grpc
Assembly: Google.Api.Gax.Grpc.dll
Syntax
public sealed class ChannelPool

Constructors

ChannelPool(IEnumerable<String>)

Creates a channel pool which will apply the specified scopes to the default application credentials if they require any.

Declaration
public ChannelPool(IEnumerable<string> scopes)
Parameters
Type Name Description
System.Collections.Generic.IEnumerable<System.String> scopes

The scopes to apply. Must not be null, and must not contain null references. May be empty.

Methods

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.

Declaration
public Task ShutdownChannelsAsync()
Returns
Type Description
System.Threading.Tasks.Task

A task which will complete when all the (current) channels have been shut down.

Back to top