-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathParallelDownloadSettings.cs
More file actions
43 lines (41 loc) · 1.65 KB
/
ParallelDownloadSettings.cs
File metadata and controls
43 lines (41 loc) · 1.65 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
using Microsoft.WindowsAzure.Storage.Core.Util;
using Microsoft.WindowsAzure.Storage.Shared.Protocol;
using System.IO;
namespace Microsoft.WindowsAzure.Storage.Blob
{
/// <summary>
/// The settings for downloading a blob in parallel.
/// </summary>
public sealed class ParallelDownloadSettings
{
public CloudBlob Blob {get; private set;}
public readonly string FilePath;
public readonly FileMode FileMode;
public readonly int ParallelIOCount;
public readonly long MaxRangeSize;
public readonly long? Offset;
public readonly long? Length;
public ParallelDownloadSettings(CloudBlob blob, string filePath, FileMode fileMode, long? offset, long? length, int parallelIOCount, long maxRangeSize)
{
//CommonUtility.AssertNotNull("blob", blob);
//CommonUtility.AssertNotNull("filePath", filePath);
//CommonUtility.AssertInBounds("parallelIOCount", parallelIOCount, 1, Constants.MaxParallelOperationThreadCount);
this.Blob = blob;
this.FilePath = filePath;
this.FileMode = fileMode;
this.ParallelIOCount = parallelIOCount;
this.MaxRangeSize = maxRangeSize;
this.Offset = offset;
this.Length = length;
}
/*
public ParallelDownloadSettings(CloudBlob blob, string filePath, FileMode fileMode)
{
this.Blob = blob;
this.FilePath = filePath;
this.FileMode = fileMode;
this.ParallelIOCount = Constants.DefaultParallelIOCount;
this.MaxRangeSize = Constants.DefaultReadWriteBlockSizeBytes;
}*/
}
}