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 ByteChannel(BlockingSocketProcessor processor) { this.processor = processor; }