public WriteWriteAsyncStream(IWriteAsyncStream stream, Func <Stream, Stream> writeStack) { _stream = stream; _ms = new MemoryStream(); _watcher = new WriteWatcherStream(_ms, () => { }); // We do this mostly so that the ms is not disposed _stack = writeStack(_watcher); }
public WriteWriteAsyncStream(IWriteAsyncStream stream, Func<Stream, Stream> writeStack) { _stream = stream; _ms = new MemoryStream(); _watcher = new WriteWatcherStream(_ms, () => { }); // We do this mostly so that the ms is not disposed _stack = writeStack(_watcher); }