/
ProgressEventArgs.cs
35 lines (30 loc) · 1.18 KB
/
ProgressEventArgs.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
// Copyright (c) .NET Foundation. All rights reserved.
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
using System;
namespace Microsoft.AspNetCore.Components.Web
{
/// <summary>
/// Supplies information about a progress event that is being raised.
/// </summary>
public class ProgressEventArgs : EventArgs
{
/// <summary>
/// Whether or not the total size of the transfer is known.
/// </summary>
public bool LengthComputable { get; set; }
/// <summary>
/// The number of bytes transferred since the beginning of the operation.
/// This doesn't include headers and other overhead, but only the content itself.
/// </summary>
public long Loaded { get; set; }
/// <summary>
/// The total number of bytes of content that will be transferred during the operation.
/// If the total size is unknown, this value is zero.
/// </summary>
public long Total { get; set; }
/// <summary>
/// Gets or sets the type of the event.
/// </summary>
public string Type { get; set; }
}
}