public LargeFileUploader(ODConnection connection, ODUploadSession uploadSession, Stream dataSource, ItemUploadOptions options)
 {
     Connection = connection;
     UploadSession = uploadSession;
     DataSource = dataSource;
     UploadOptions = options;
 }
Exemplo n.º 2
0
 public LargeFileUploader(ODConnection connection, ODUploadSession uploadSession, Stream dataSource, ItemUploadOptions options)
 {
     Connection    = connection;
     UploadSession = uploadSession;
     DataSource    = dataSource;
     UploadOptions = options;
 }
 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;
 }