Class LibraryCollection
- Namespace
- EncDotNet.S100.Collections.Library
- Assembly
- EncDotNet.S100.Collections.dll
An immutable view of one collection in the library, with the current indexing state of each of its sources.
public sealed record LibraryCollection : IEquatable<LibraryCollection>
- Inheritance
-
LibraryCollection
- Implements
- Inherited Members
Constructors
LibraryCollection(DatasetCollection, IReadOnlyList<LibrarySource>, bool)
An immutable view of one collection in the library, with the current indexing state of each of its sources.
public LibraryCollection(DatasetCollection Definition, IReadOnlyList<LibrarySource> Sources, bool IsSession = false)
Parameters
DefinitionDatasetCollectionThe persisted collection definition.
SourcesIReadOnlyList<LibrarySource>The collection's sources, in definition order.
IsSessionboolTrue for the transient "Session" collection holding S-128 datasets loaded this session; it is never persisted.
Properties
Definition
The persisted collection definition.
public DatasetCollection Definition { get; init; }
Property Value
Id
The collection's id.
public Guid Id { get; }
Property Value
IsIndexing
True while any source is being indexed.
public bool IsIndexing { get; }
Property Value
IsSession
True for the transient "Session" collection holding S-128 datasets loaded this session; it is never persisted.
public bool IsSession { get; init; }
Property Value
ItemCount
The number of indexed items across every source.
public int ItemCount { get; }
Property Value
Sources
The collection's sources, in definition order.
public IReadOnlyList<LibrarySource> Sources { get; init; }