Ejemplo n.º 1
0
        public virtual Stream CreateFile(string path)
        {
            Paths[path] = () => Stream.Null;

            Action <Stream> streamClose = (stream) => {
                stream.Seek(0, SeekOrigin.Begin);
                AddFile(path, stream);
            };
            var memoryStream = new EventMemoryStream(streamClose);

            return(memoryStream);
        }
Ejemplo n.º 2
0
 public virtual Stream CreateFile(string path)
 {
     Paths[path] = () => Stream.Null;
     
     Action<Stream> streamClose = (stream) => {
         stream.Seek(0, SeekOrigin.Begin);
         AddFile(path, stream);
     };
     var memoryStream = new EventMemoryStream(streamClose);
     return memoryStream;
 }