This documentation is also published as Markdown for efficient machine reading: the whole site is indexed at /llms.txt, and every page has a clean Markdown copy under /_llms/. These are generated from the same source and cost far fewer tokens to read than this rendered HTML.

Skip to main content Skip to navigation

WellKnownArtifactService Pennington.StandardSite

Artifact-tier service for the Standard Site verification well-known files: the publication AT-URI at /.well-known/site.standard.publication[{path}] and, when enabled, the bare DID at /.well-known/atproto-did. Bytes derive from options alone — the trivial proof that the artifact tier does not require the site projection. Claims nothing when the options are incompletely configured (fail-safe). Transient so it captures current options.

Properties

Claims ImmutableList<ArtifactClaim>
URL territories this service serves. Options-derived and consulted on every request — must be cheap and must not trigger discovery, the projection, or any lazy corpus work.

Constructors

WellKnownArtifactService

#
public WellKnownArtifactService(StandardSiteOptions options)

Creates the service; claims derive from the options alone.

Parameters

options StandardSiteOptions

Methods

DiscoverAsync

#
public IAsyncEnumerable<DiscoveredItem> DiscoverAsync()

Enumerates every artifact route the static build should write, as GeneratedSource items. May consume the projection — the build invokes this outside any request, after the page crawl has primed the render cache. Never called on the request path.

Returns

IAsyncEnumerable<DiscoveredItem>

ResolveAsync

#
public Task<ArtifactContent> ResolveAsync(string relativePath, CancellationToken cancellationToken)

Returns the bytes for relativePath (no leading slash, e.g. search/en/index.json), or null to decline so the request falls through to content routing. May materialize the projection, build an index, or run Chromium on demand.

Parameters

relativePath string
cancellationToken CancellationToken

Returns

Task<ArtifactContent>

Pennington.StandardSite.WellKnownArtifactService

namespace Pennington.StandardSite;

/// Artifact-tier service for the Standard Site verification well-known files: the publication AT-URI at /.well-known/site.standard.publication[{path}] and, when enabled, the bare DID at /.well-known/atproto-did. Bytes derive from options alone — the trivial proof that the artifact tier does not require the site projection. Claims nothing when the options are incompletely configured (fail-safe). Transient so it captures current options.
public class WellKnownArtifactService
{
    /// URL territories this service serves. Options-derived and consulted on every request — must be cheap and must not trigger discovery, the projection, or any lazy corpus work.
    
public ImmutableList<ArtifactClaim> Claims { get; }
/// Enumerates every artifact route the static build should write, as GeneratedSource items. May consume the projection — the build invokes this outside any request, after the page crawl has primed the render cache. Never called on the request path.
public IAsyncEnumerable<DiscoveredItem> DiscoverAsync()
; /// Returns the bytes for relativePath (no leading slash, e.g. search/en/index.json), or null to decline so the request falls through to content routing. May materialize the projection, build an index, or run Chromium on demand.
public Task<ArtifactContent> ResolveAsync(string relativePath, CancellationToken cancellationToken)
; /// Creates the service; claims derive from the options alone.
public WellKnownArtifactService(StandardSiteOptions options)
; }