コード例 #1
0
        protected override void OpenCore()
        {
            _inStream  = new ProducerConsumerStream();
            _outStream = new ProducerConsumerStream();

            InnerChannels.Add(ChannelFactory.Create(_inStream, _outStream));
        }
コード例 #2
0
 private StreamDataTransport(ProducerConsumerStream inStream, ProducerConsumerStream outStream, IChannelFactory <TPacket> channelFactory, StreamDataTransportSettings settings) : base(channelFactory, settings)
 {
     _inStream  = inStream;
     _outStream = outStream;
     InnerChannels.Add(ChannelFactory.Create(_inStream, _outStream));
 }
コード例 #3
0
 private StreamDataTransport(ProducerConsumerStream inStream, ProducerConsumerStream outStream, IChannelFactory <TPacket> channelFactory, IOptions <DataTransportOption> option) : base(channelFactory, option)
 {
     _inStream  = inStream;
     _outStream = outStream;
     InnerChannels.Add(ChannelFactory.Create(_inStream, _outStream));
 }