public void Open()
 {
     _socketProcessor = new BlockingSocketProcessor(_host, _port, _protocolListener);
     _socketProcessor.Connect();
     _amqpChannel = new AmqpChannel(_socketProcessor.ByteChannel);
     _readerRunner = new ReaderRunner(this);
     _readerThread = new Thread(new ThreadStart(_readerRunner.Run));  
     _readerThread.Start();
 }
 public void Open()
 {
     _socketProcessor = new BlockingSocketProcessor(_host, _port, _protocolListener);
     _socketProcessor.Connect();
     _amqpChannel  = new AmqpChannel(_socketProcessor.ByteChannel);
     _readerRunner = new ReaderRunner(this);
     _readerThread = new Thread(new ThreadStart(_readerRunner.Run));
     _readerThread.Start();
 }
Example #3
0
 public ByteChannel(BlockingSocketProcessor processor)
 {
     this.processor = processor;
 }