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); }
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); //} }