Table of Contents

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

Completed int

Items downloaded.

Failed int

Items that failed.

Total int

Items in the batch.

BytesDone long

Bytes received, including finished items.

BytesTotal long

The batch's total size, as far as known.

Properties

BytesDone

Bytes received, including finished items.

public long BytesDone { get; init; }

Property Value

long

BytesLeft

Bytes still to receive.

public long BytesLeft { get; }

Property Value

long

BytesTotal

The batch's total size, as far as known.

public long BytesTotal { get; init; }

Property Value

long

Completed

Items downloaded.

public int Completed { get; init; }

Property Value

int

Failed

Items that failed.

public int Failed { get; init; }

Property Value

int

Fraction

The fraction done (0–1), by bytes when sizes are known, else by items.

public double Fraction { get; }

Property Value

double

Remaining

Items still to finish.

public int Remaining { get; }

Property Value

int

Total

Items in the batch.

public int Total { get; init; }

Property Value

int