Ejemplo n.º 1
0
 protected internal AbstractBootstrap(AbstractBootstrap <TBootstrap, TChannel> bootstrap)
 {
     this.group          = bootstrap.group;
     this.channelFactory = bootstrap.channelFactory;
     this.handler        = bootstrap.handler;
     this.localAddress   = bootstrap.localAddress;
     this.options        = new ConcurrentDictionary <ChannelOption, ChannelOptionValue>(bootstrap.options);
     this.attrs          = new ConcurrentDictionary <IConstant, AttributeValue>(bootstrap.attrs);
 }
Ejemplo n.º 2
0
 protected internal AbstractBootstrap(AbstractBootstrap <TBootstrap, TChannel> bootstrap)
 {
     this.group          = bootstrap.group;
     this.channelFactory = bootstrap.channelFactory;
     this.handler        = bootstrap.handler;
     this.localAddress   = bootstrap.localAddress;
     this.options        = new ConcurrentDictionary <ChannelOption, object>(bootstrap.options);
     // todo: attr
     //lock (bootstrap.attrs)
     //{
     //    this.attrs.putAll(bootstrap.attrs);
     //}
 }