Esempio n. 1
0
 internal MultiPartFileStream(MultiPartFile multiPartFile, Stream stream)
 {
     this.multiPartFile = multiPartFile;
     this.stream        = stream;
 }
Esempio n. 2
0
        public static MultiPartFileStream OpenRead(params string[] files)
        {
            var parts = new MultiPartFile(files);

            return(new MultiPartFileStream(parts, new ConcatenatedStream(parts.Files.Select(File.OpenRead))));
        }
Esempio n. 3
0
        public static MultiPartFileStream Create(string mainFilePath, long perFileLength)
        {
            var parts = new MultiPartFile(mainFilePath);

            return(new MultiPartFileStream(parts, new SplittedStream(perFileLength, parts.OpenWriteNextFile)));
        }
Esempio n. 4
0
        public static MultiPartFileStream OpenRead(string mainFilePath)
        {
            var parts = new MultiPartFile(mainFilePath);

            return(new MultiPartFileStream(parts, new ConcatenatedStream(parts.Files.Select(File.OpenRead))));
        }