-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathBackgroundCopyJobProgress.cs
142 lines (98 loc) · 3.56 KB
/
BackgroundCopyJobProgress.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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
//
// @(#) BackgroundCopyJobProgress.cs
//
// Project: usis.Net.Bits
// System: Microsoft Visual Studio 2017
// Author: Udo Schäfer
//
// Copyright (c) 2017,2018 usis GmbH. All rights reserved.
using usis.Net.Bits.Interop;
namespace usis.Net.Bits
{
// -------------------------------
// BackgroundCopyJobProgress class
// -------------------------------
/// <summary>
/// Provides job-related progress information,
/// such as the number of bytes and files transferred.
/// </summary>
public sealed class BackgroundCopyJobProgress
{
#region fields
private BG_JOB_PROGRESS progress;
#endregion fields
#region construction
// ------------
// construction
// ------------
internal BackgroundCopyJobProgress(BG_JOB_PROGRESS progress) => this.progress = progress;
#endregion construction
#region public properties
// -------------------
// BytesTotal property
// -------------------
/// <summary>
/// Total number of bytes to transfer for all files in the job.
/// </summary>
public long BytesTotal => progress.bytesTotal;
// -------------------------
// BytesTransferred property
// -------------------------
/// <summary>
/// Number of bytes transferred.
/// </summary>
public long BytesTransferred => progress.bytesTransferred;
// -------------------
// FilesTotal property
// -------------------
/// <summary>
/// Total number of files to transfer for this job.
/// </summary>
public int FilesTotal => progress.filesTotal;
// -------------------------
// FilesTransferred property
// -------------------------
/// <summary>
/// Number of files transferred.
/// </summary>
public int FilesTransferred => progress.filesTransferred;
#endregion public properties
}
#region BackgroundCopyJobReplyProgress class
// ------------------------------------
// BackgroundCopyJobReplyProgress class
// ------------------------------------
/// <summary>
/// Provides progress information related to the reply portion of an upload-reply job.
/// </summary>
public sealed class BackgroundCopyJobReplyProgress
{
#region fields
private BG_JOB_REPLY_PROGRESS progress;
#endregion fields
#region construction
// ------------
// construction
// ------------
internal BackgroundCopyJobReplyProgress(BG_JOB_REPLY_PROGRESS progress) => this.progress = progress;
#endregion construction
#region public properties
// -------------------
// BytesTotal property
// -------------------
/// <summary>
/// Total number of bytes to transfer.
/// </summary>
public long BytesTotal => (long)progress.bytesTotal;
// -------------------------
// BytesTransferred property
// -------------------------
/// <summary>
/// Number of bytes transferred.
/// </summary>
public long BytesTransferred => (long)progress.bytesTransferred;
#endregion public properties
}
#endregion BackgroundCopyJobReplyProgress class
}
// eof "BackgroundCopyJobProgress.cs"