Ejemplo n.º 1
0
 internal void AddFile(ReconstructedFile file, ContentRange range)
 {
     if (this.closed)
     {
         throw new Exception("The assembler is closed.");
     }
     else
     {
         this.timestamp = file.Timestamp;
         if (this.filePartList.ContainsKey(range.Start))
         {
             if (this.filePartList[range.Start].FileSize < file.FileSize)
             {
                 this.filePartList[range.Start] = file;
             }
         }
         else
         {
             this.filePartList.Add(range.Start, file);
         }
     }
 }
Ejemplo n.º 2
0
 internal Add(ReconstructedFile reconstructedFile, ContentRange contentRange) {
     //reconstructedFile.se
     bool fileTransferIsServerToClient = true;
     new FileSegmentAssembler(this.fileOutputDirectory, fileTransferIsServerToClient, reconstructedFile.Filename, reconstructedFile.
 }