<PackageReference Include="Grpc.Net.Client" Version="2.71.0" />

Grpc.Net.Client.Balancer.Internal.ISubchannelTransport

An abstraction for subchannels to create a transport and connect to the server. This abstraction allows the connection to be customized. Used in unit tests. Might be made public in the future to support using load balancing with non-socket transports.
namespace Grpc.Net.Client.Balancer.Internal { internal interface ISubchannelTransport : IDisposable { DnsEndPoint CurrentEndPoint { get; } TimeSpan? ConnectTimeout { get; } TransportStatus TransportStatus { get; } ValueTask<Stream> GetStreamAsync(DnsEndPoint endPoint, CancellationToken cancellationToken); ValueTask<ConnectResult> TryConnectAsync(ConnectContext context, int attempt); void Disconnect(); } }