public BlockingSocketProcessor(string host, int port, IProtocolListener protocolListener) { _host = host; _port = port; _protocolListener = protocolListener; _byteChannel = new ByteChannel(this); }
public AmqpChannel(IByteChannel byteChannel, IProtocolDecoderOutput decoderOutput) { _byteChannel = byteChannel; _decoderOutput = decoderOutput; _syncLock = new object(); AMQProtocolProvider protocolProvider = new AMQProtocolProvider(); IProtocolCodecFactory factory = protocolProvider.CodecFactory; _encoder = factory.Encoder; _decoder = factory.Decoder; }
public ByteChannel(IByteChannel lowerChannel) { _lowerChannel = lowerChannel; }