Table of Contents

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

Definition DatasetCollection

The persisted collection definition.

Sources IReadOnlyList<LibrarySource>

The collection's sources, in definition order.

IsSession bool

True 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

DatasetCollection

Id

The collection's id.

public Guid Id { get; }

Property Value

Guid

IsIndexing

True while any source is being indexed.

public bool IsIndexing { get; }

Property Value

bool

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

bool

ItemCount

The number of indexed items across every source.

public int ItemCount { get; }

Property Value

int

Sources

The collection's sources, in definition order.

public IReadOnlyList<LibrarySource> Sources { get; init; }

Property Value

IReadOnlyList<LibrarySource>