-
Notifications
You must be signed in to change notification settings - Fork 4.5k
/
DataTransferProgress.cs
48 lines (41 loc) · 1.81 KB
/
DataTransferProgress.cs
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
44
45
46
47
48
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
namespace Azure.Storage.DataMovement
{
/// <summary>
/// Progress Handler to track how many files and bytes were transferred, along with files that failed or were skipped in transfer.
/// </summary>
public class DataTransferProgress
{
/// <summary>
/// Constructor for mocking.
/// </summary>
protected internal DataTransferProgress() { }
/// <summary>
/// Number of files that were transferred successfully.
/// </summary>
public long CompletedCount { get; internal set; }
/// <summary>
/// Number of files that were skipped in transfer due to files already existing in the destination. Files will be skipped if
/// the overwrite policy is set to not overwrite existing files.
/// </summary>
public long SkippedCount { get; internal set; }
/// <summary>
/// Number of files that failed to transfer successfully.
/// </summary>
public long FailedCount { get; internal set; }
/// <summary>
/// Number of files that are currently in progress of being transferred.
/// </summary>
public long InProgressCount { get; internal set; }
/// <summary>
/// Number of files that are queued up for transfer. This will vary depending when all the files discoverable for the full transfers have been queued.
/// </summary>
public long QueuedCount { get; internal set; }
/// <summary>
/// Number of bytes transferred across all files.
/// Only populated if <see cref="ProgressHandlerOptions.TrackBytesTransferred"/> is set.
/// </summary>
public long? BytesTransferred { get; internal set; }
}
}