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
Indexer
Indexes every kind of source.
public CollectionIndexer Indexer { get; }
Property Value
Library
The Library.
public CollectionLibrary Library { get; }
Property Value
Paths
Where the Library keeps its state.
public LibraryDataPaths Paths { get; }
Property Value
ProbeCatalogue
Recognises a catalogue URL's format, for adding by URL.
public Func<Uri, CancellationToken, Task<CatalogueProbe>> ProbeCatalogue { get; }
Property Value
Readers
Reads online catalogues when a source is added.
public LibraryCatalogueReaders Readers { get; }
Property Value
Revocation
Revocation of MCP-issued certificates.
public SecomRevocation Revocation { get; }
Property Value
SecomRegistry
The MCP service registry, for finding SECOM services.
public SecomRegistry SecomRegistry { get; }
Property Value
SecomTrust
Which SECOM servers are trusted, and the client identity used with them.
public SecomServerTrust SecomTrust { get; }
Property Value
Sync
Keeps synced sources downloaded.
public LibrarySync Sync { get; }
Property Value
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
pathsLibraryDataPathsWhere the Library keeps its state.
probeDatasetProbeReads a local dataset's metadata (bounds, edition) while indexing; files are listed without it.
optionsLibraryServicesOptionsThe clock, logging and whether changes are saved; defaults when null.
Returns
Dispose()
Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
public void Dispose()