Esempio n. 1
0
 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);
 }
Esempio n. 2
0
 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);
 }