Class LibrarySource
- Namespace
- EncDotNet.S100.Collections.Library
- Assembly
- EncDotNet.S100.Collections.dll
An immutable view of one collection source and its index.
public sealed record LibrarySource : IEquatable<LibrarySource>
- Inheritance
-
LibrarySource
- Implements
- Inherited Members
Constructors
LibrarySource(CollectionSource, SourceIndex?, LibrarySourceState, string?)
An immutable view of one collection source and its index.
public LibrarySource(CollectionSource Definition, SourceIndex? Index, LibrarySourceState State, string? Error = null)
Parameters
DefinitionCollectionSourceThe persisted source definition.
IndexSourceIndexThe latest index, or null before the first one completes.
StateLibrarySourceStateThe indexing state.
Errorstring
Properties
Definition
The persisted source definition.
public CollectionSource Definition { get; init; }
Property Value
Error
public string? Error { get; init; }
Property Value
Id
The source's id.
public Guid Id { get; }
Property Value
Index
The latest index, or null before the first one completes.
public SourceIndex? Index { get; init; }
Property Value
State
The indexing state.
public LibrarySourceState State { get; init; }