Beispiel #1
0
 public ChannelBuilder(BindingContext context, bool addChannelDemuxerIfRequired)
 {
     this.context             = context;
     isChannelDemuxerRequired = addChannelDemuxerIfRequired;
     if (isChannelDemuxerRequired)
     {
         channelDemuxer = new ChannelDemuxer();
     }
     this.binding           = new CustomBinding(context.Binding, context.RemainingBindingElements);
     this.bindingParameters = context.BindingParameters;
 }
Beispiel #2
0
        public ChannelBuilder(BindingContext context, bool addChannelDemuxerIfRequired)
        {
            _isChannelDemuxerRequired = addChannelDemuxerIfRequired;
            if (_isChannelDemuxerRequired)
            {
                ChannelDemuxer = new ChannelDemuxer();
            }

            Binding           = new CustomBinding(context.Binding, context.RemainingBindingElements);
            BindingParameters = context.BindingParameters;
        }