public Hub(Pipe pipe) { _pipe = pipe; _hubReader = new HubReader(_pipe); _hubWriter = new HubWriter(_pipe); }
public BytesHub(IBytesPool bytesPool) { _bufferWriter = new BufferWriter(bytesPool); _hubReader = new HubReader(_bufferWriter); _hubWriter = new HubWriter(_bufferWriter); }