internal ChannelState(Status status, IReadOnlyList <BalancerAddress>?addresses, LoadBalancingConfig?loadBalancingConfig, BalancerAttributes attributes) { Addresses = addresses; LoadBalancingConfig = loadBalancingConfig; Status = status; Attributes = attributes; }
internal Subchannel(ConnectionManager manager, IReadOnlyList <BalancerAddress> addresses) { Lock = new object(); _logger = manager.LoggerFactory.CreateLogger(GetType()); Id = manager.GetNextId(); _addresses = addresses.ToList(); _manager = manager; Attributes = new BalancerAttributes(); SubchannelLog.SubchannelCreated(_logger, Id, addresses); }