Beispiel #1
0
        internal FileChunk(FxFileChunk fileChunk)
        {
            if (fileChunk == null)
                throw new ArgumentNullException(nameof(fileChunk));

            this.FileName = fileChunk.FileName;
            this.ChunksNumber = fileChunk.ChunksNumber;
            this.FileSize = fileChunk.FileSize;
            this.Data = fileChunk.Data;
        }
Beispiel #2
0
        internal FileChunk(FxFileChunk fileChunk)
        {
            if (fileChunk == null)
            {
                throw new ArgumentNullException(nameof(fileChunk));
            }

            this.FileId      = fileChunk.FileId;
            this.FileName    = fileChunk.FileName;
            this.FileSize    = fileChunk.FileSize;
            this.ChunkId     = fileChunk.ChunkId;
            this.TotalChunks = fileChunk.TotalChunks;
            this.Data        = fileChunk.Data;
        }