Пример #1
0
 public Connection(IPulsarStream stream)
 {
     _lock            = new AsyncLock();
     _channelManager  = new ChannelManager();
     _pingPongHandler = new PingPongHandler(this);
     _stream          = stream;
 }
Пример #2
0
 public Connection(Stream stream)
 {
     _lock                   = new AsyncLock();
     _producerManager        = new ProducerManager();
     _consumerManager        = new ConsumerManager();
     _requestResponseHandler = new RequestResponseHandler();
     _pingPongHandler        = new PingPongHandler(this);
     _stream                 = new PulsarStream(stream, HandleCommand);
 }