Class TemplateDownload
A template package being downloaded, or one whose download failed.
public sealed record TemplateDownload : IEquatable<TemplateDownload>
- Inheritance
-
objectTemplateDownload
- Implements
- Extension Methods
Constructors
TemplateDownload(string, long, long, int, int, bool)
A template package being downloaded, or one whose download failed.
public TemplateDownload(string PackageId, long DownloadedBytes, long TotalBytes = 0, int Index = 1, int Count = 1, bool Failed = false)
Parameters
PackageIdstringThe package.
DownloadedByteslongBytes downloaded so far.
TotalByteslongSize of the download, 0 until it starts.
IndexintPosition of this package in its batch, from 1.
CountintNumber of packages in the batch.
FailedboolWhether the download failed (the package is not available).
Properties
Count
Number of packages in the batch.
public int Count { get; init; }
Property Value
DownloadedBytes
Bytes downloaded so far.
public long DownloadedBytes { get; init; }
Property Value
Failed
Whether the download failed (the package is not available).
public bool Failed { get; init; }
Property Value
Fraction
Progress from 0 to 1, or null while the size is not known.
public double? Fraction { get; }
Property Value
Index
Position of this package in its batch, from 1.
public int Index { get; init; }
Property Value
PackageId
The package.
public string PackageId { get; init; }
Property Value
TotalBytes
Size of the download, 0 until it starts.
public long TotalBytes { get; init; }