protected override void OpenCore() { _inStream = new ProducerConsumerStream(); _outStream = new ProducerConsumerStream(); InnerChannels.Add(ChannelFactory.Create(_inStream, _outStream)); }
private StreamDataTransport(ProducerConsumerStream inStream, ProducerConsumerStream outStream, IChannelFactory <TPacket> channelFactory, StreamDataTransportSettings settings) : base(channelFactory, settings) { _inStream = inStream; _outStream = outStream; InnerChannels.Add(ChannelFactory.Create(_inStream, _outStream)); }
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)); }