示例#1
0
 public LargeFileUploader(ODConnection connection, ODUploadSession uploadSession, Stream dataSource, ItemUploadOptions options)
 {
     Connection    = connection;
     UploadSession = uploadSession;
     DataSource    = dataSource;
     UploadOptions = options;
 }
示例#2
0
 public static void ApplySessionDelta(this ODUploadSession original, ODUploadSession latest)
 {
     if (latest.ExpectedRanges != null)
     {
         original.ExpectedRanges = latest.ExpectedRanges;
     }
     if (latest.Expiration > DateTimeOffset.MinValue)
     {
         original.Expiration = latest.Expiration;
     }
     if (latest.UploadUrl != null)
     {
         original.UploadUrl = latest.UploadUrl;
     }
 }