Ejemplo n.º 1
0
 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);
 }
Ejemplo n.º 2
0
 public InnerTcpClient(RpcTcpClient parent, RpcTcpConfigurationClient configuration) : base(configuration
                                                                                            .TcpConfiguration)
 {
     this.parent = parent;
 }