File: Web\ProgressEventArgs.cs
Web Access
Project: src\src\Components\Web\src\Microsoft.AspNetCore.Components.Web.csproj (Microsoft.AspNetCore.Components.Web)
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
 
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; } = default!;
}