Table of Contents

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

Definition CollectionSource

The persisted source definition.

Index SourceIndex

The latest index, or null before the first one completes.

State LibrarySourceState

The indexing state.

Error string

Why the last indexing attempt failed, when State is Failed.

Properties

Definition

The persisted source definition.

public CollectionSource Definition { get; init; }

Property Value

CollectionSource

Error

Why the last indexing attempt failed, when State is Failed.

public string? Error { get; init; }

Property Value

string

Id

The source's id.

public Guid Id { get; }

Property Value

Guid

Index

The latest index, or null before the first one completes.

public SourceIndex? Index { get; init; }

Property Value

SourceIndex

State

The indexing state.

public LibrarySourceState State { get; init; }

Property Value

LibrarySourceState