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
IndexingboolTrue while a source is indexing.
DownloadsLibraryDownloadProgressThe running download batch, or null.
ActiveOperationsintDownloads and loads still running, including the re-indexing and opening that follow a download.
PendingDatasetsintDatasets 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
Downloads
The running download batch, or null.
public LibraryDownloadProgress? Downloads { get; init; }
Property Value
Indexing
True while a source is indexing.
public bool Indexing { get; init; }
Property Value
IsIdle
True when nothing is indexing, downloading or opening datasets.
public bool IsIdle { get; }
Property Value
PendingDatasets
Datasets those operations have yet to open (including any still downloading).
public int PendingDatasets { get; init; }
Property Value
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
libraryCollectionLibraryThe library (for indexing).
downloadsLibraryDownloadProgressThe running download batch, or null.
activityLibraryActivityTrackerThe operations tracker.