<PackageReference Include="Grpc.Net.Client" Version="2.80.0-pre1" />

Grpc.Net.Client.GrpcChannel

public sealed class GrpcChannel : ChannelBase, IDisposable
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.
public static GrpcChannel ForAddress(string address)

Creates a GrpcChannel for the specified address.

public static GrpcChannel ForAddress(string address, GrpcChannelOptions channelOptions)

Creates a GrpcChannel for the specified address and configuration options.

public static GrpcChannel ForAddress(Uri address)

Creates a GrpcChannel for the specified address.

public static GrpcChannel ForAddress(Uri address, GrpcChannelOptions channelOptions)

Creates a GrpcChannel for the specified address and configuration options.

public void Dispose()

Releases the resources used by the GrpcChannel class. Clients created with the channel can't be used after the channel is disposed.