Table of Contents

Class LibraryActivitySnapshot

Namespace
EncDotNet.S100.Collections.Library
Assembly
EncDotNet.S100.Collections.dll

Whether a Library is busy, at one moment.

public sealed record LibraryActivitySnapshot : IEquatable<LibraryActivitySnapshot>
Inheritance
LibraryActivitySnapshot
Implements
Inherited Members

Constructors

LibraryActivitySnapshot(bool, LibraryDownloadProgress?, int, int)

Whether a Library is busy, at one moment.

public LibraryActivitySnapshot(bool Indexing, LibraryDownloadProgress? Downloads, int ActiveOperations, int PendingDatasets)

Parameters

Indexing bool

True while a source is indexing.

Downloads LibraryDownloadProgress

The running download batch, or null.

ActiveOperations int

Downloads and loads still running, including the re-indexing and opening that follow a download.

PendingDatasets int

Datasets those operations have yet to open (including any still downloading).

Properties

ActiveOperations

Downloads and loads still running, including the re-indexing and opening that follow a download.

public int ActiveOperations { get; init; }

Property Value

int

Downloads

The running download batch, or null.

public LibraryDownloadProgress? Downloads { get; init; }

Property Value

LibraryDownloadProgress

Indexing

True while a source is indexing.

public bool Indexing { get; init; }

Property Value

bool

IsIdle

True when nothing is indexing, downloading or opening datasets.

public bool IsIdle { get; }

Property Value

bool

PendingDatasets

Datasets those operations have yet to open (including any still downloading).

public int PendingDatasets { get; init; }

Property Value

int

Methods

Capture(CollectionLibrary, LibraryDownloadProgress?, LibraryActivityTracker)

Reads the activity of library, its downloads and its tracked operations now.

public static LibraryActivitySnapshot Capture(CollectionLibrary library, LibraryDownloadProgress? downloads, LibraryActivityTracker activity)

Parameters

library CollectionLibrary

The library (for indexing).

downloads LibraryDownloadProgress

The running download batch, or null.

activity LibraryActivityTracker

The operations tracker.

Returns

LibraryActivitySnapshot