Beispiel #1
0
 private StorageTaskTaskSnapshotWrapper(
     FileDownloadTask.TaskSnapshot snapshot = null,
     Exception error = null)
     : this(error)
 {
     if (snapshot != null)
     {
         TransferredUnitCount = snapshot.BytesTransferred;
         TotalUnitCount       = snapshot.TotalByteCount;
         TransferredFraction  = snapshot.BytesTransferred / (double)snapshot.TotalByteCount;
     }
 }
 public FileDownloadTaskSnapshotWrapper(FileDownloadTask.TaskSnapshot taskSnapshot)
 {
     _taskSnapshot = taskSnapshot;
 }
 public FileDownloadTaskSnapshotWrapper(FileDownloadTask.TaskSnapshot taskSnapshot)
 {
     _taskSnapshot = taskSnapshot ?? throw new ArgumentNullException(nameof(taskSnapshot));
 }