コード例 #1
0
 internal ChannelState(Status status, IReadOnlyList <BalancerAddress>?addresses, LoadBalancingConfig?loadBalancingConfig, BalancerAttributes attributes)
 {
     Addresses           = addresses;
     LoadBalancingConfig = loadBalancingConfig;
     Status     = status;
     Attributes = attributes;
 }
コード例 #2
0
ファイル: Subchannel.cs プロジェクト: grpc/grpc-dotnet
        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);
        }