Table of Contents

Class LibraryServices

Namespace
EncDotNet.S100.Collections.Library
Assembly
EncDotNet.S100.Collections.dll

A Library and everything it reads and downloads with, for a host without the viewer's dependency injection (#792; s100 mcp serve): the indexers of every source kind over one feed cache, the Library, its downloads and sync, the catalogue readers that add sources, and the catalogue-URL probe.

public sealed class LibraryServices : IDisposable
Inheritance
LibraryServices
Implements
Inherited Members

Remarks

SECOM requests trust the built-in MCP anchors and check revocation; no client identity is set until one is given to SecomTrust. Every other client refuses chains with a distrusted key or a revoked certificate (HardenedTls).

Properties

Downloads

Downloads the Library's online items.

public LibraryDownloads Downloads { get; }

Property Value

LibraryDownloads

Indexer

Indexes every kind of source.

public CollectionIndexer Indexer { get; }

Property Value

CollectionIndexer

Library

The Library.

public CollectionLibrary Library { get; }

Property Value

CollectionLibrary

Paths

Where the Library keeps its state.

public LibraryDataPaths Paths { get; }

Property Value

LibraryDataPaths

ProbeCatalogue

Recognises a catalogue URL's format, for adding by URL.

public Func<Uri, CancellationToken, Task<CatalogueProbe>> ProbeCatalogue { get; }

Property Value

Func<Uri, CancellationToken, Task<CatalogueProbe>>

Readers

Reads online catalogues when a source is added.

public LibraryCatalogueReaders Readers { get; }

Property Value

LibraryCatalogueReaders

Revocation

Revocation of MCP-issued certificates.

public SecomRevocation Revocation { get; }

Property Value

SecomRevocation

SecomRegistry

The MCP service registry, for finding SECOM services.

public SecomRegistry SecomRegistry { get; }

Property Value

SecomRegistry

SecomTrust

Which SECOM servers are trusted, and the client identity used with them.

public SecomServerTrust SecomTrust { get; }

Property Value

SecomServerTrust

Sync

Keeps synced sources downloaded.

public LibrarySync Sync { get; }

Property Value

LibrarySync

Methods

Create(LibraryDataPaths, DatasetProbe?, LibraryServicesOptions?)

Creates the services over paths; call Initialize() on Library to read the collections.

public static LibraryServices Create(LibraryDataPaths paths, DatasetProbe? probe = null, LibraryServicesOptions? options = null)

Parameters

paths LibraryDataPaths

Where the Library keeps its state.

probe DatasetProbe

Reads a local dataset's metadata (bounds, edition) while indexing; files are listed without it.

options LibraryServicesOptions

The clock, logging and whether changes are saved; defaults when null.

Returns

LibraryServices

Dispose()

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.

public void Dispose()