Grpc.Net.Client.GrpcChannel
Represents a gRPC channel. Channels are an abstraction of long-lived connections to remote servers.
Client objects can reuse the same channel. Creating a channel is an expensive operation compared to invoking
a remote call so in general you should reuse a single channel for as many calls as possible.
namespace Grpc.Net.Client
{
public sealed class GrpcChannel : IDisposable
{
public static GrpcChannel ForAddress(string address);
public static GrpcChannel ForAddress(string address, GrpcChannelOptions channelOptions);
public static GrpcChannel ForAddress(Uri address);
public static GrpcChannel ForAddress(Uri address, GrpcChannelOptions channelOptions);
public void Dispose();
}
}