public RpcTcpClient(RpcTcpConfigurationClient configuration) { if (configuration == null) { throw new ArgumentNullException(nameof(configuration)); } if (configuration.Serializer == null) { throw new ArgumentNullException(nameof(configuration.Serializer)); } configuration.Lock(); this.configuration = configuration; this.innerTcpClient = new InnerTcpClient(this, configuration); this.logger = configuration.LogManager.GetLogger(nameof(RpcTcpClient)); this.logger.Meta["kind"] = this.GetType().Name; this.logger.Meta["tag"] = new RefLogLabel <RpcTcpClient>(this, s => s.Tag); }
public InnerTcpClient(RpcTcpClient parent, RpcTcpConfigurationClient configuration) : base(configuration .TcpConfiguration) { this.parent = parent; }