/// <summary> /// Creates a redirector between the two streams /// </summary> public StreamRedirect(Stream from, Stream to, string connInfo) { _logger = null; _from = from; _to = to; _connectionInfo = connInfo; _closed = new ManualResetEvent(false); _buffer = new byte[BUFF_SIZE]; _result = _from.BeginRead(_buffer, 0, _buffer.Length, OnRead, null); }
/// <summary> /// Creates a redirector between the two streams /// </summary> public StreamRedirect(Stream from, Stream to, string connInfo, BinaryLogWrite logger) : this(from, to, connInfo) { _logger = logger; }