Class LibraryDownloadProgress
- Namespace
- EncDotNet.S100.Collections.Library
- Assembly
- EncDotNet.S100.Collections.dll
The running bulk download: how many items are done and how many bytes remain.
public sealed record LibraryDownloadProgress : IEquatable<LibraryDownloadProgress>
- Inheritance
-
LibraryDownloadProgress
- Implements
- Inherited Members
Constructors
LibraryDownloadProgress(int, int, int, long, long)
The running bulk download: how many items are done and how many bytes remain.
public LibraryDownloadProgress(int Completed, int Failed, int Total, long BytesDone, long BytesTotal)
Parameters
CompletedintItems downloaded.
FailedintItems that failed.
TotalintItems in the batch.
BytesDonelongBytes received, including finished items.
BytesTotallongThe batch's total size, as far as known.
Properties
BytesDone
Bytes received, including finished items.
public long BytesDone { get; init; }
Property Value
BytesLeft
Bytes still to receive.
public long BytesLeft { get; }
Property Value
BytesTotal
The batch's total size, as far as known.
public long BytesTotal { get; init; }
Property Value
Completed
Items downloaded.
public int Completed { get; init; }
Property Value
Failed
Items that failed.
public int Failed { get; init; }
Property Value
Fraction
The fraction done (0–1), by bytes when sizes are known, else by items.
public double Fraction { get; }
Property Value
Remaining
Items still to finish.
public int Remaining { get; }
Property Value
Total
Items in the batch.
public int Total { get; init; }