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 at the same URL with .md appended. 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

IDownloadLinkProvider Pennington.Navigation

DI-discovered provider of download links a host's chrome can advertise (the DocSite sidebar renders every registered provider's links beneath the matching area's table of contents). Implementations must be cheap to resolve on the request path — derive purely from configured options, never from the site projection.

Methods

#
public IReadOnlyList<DownloadLink> GetLinks(string locale = null)

Returns the links available for locale (or the default locale when null), each with a locale-appropriate URL.

Parameters

locale string

Returns

IReadOnlyList<DownloadLink>

Pennington.Navigation.IDownloadLinkProvider

namespace Pennington.Navigation;

/// DI-discovered provider of download links a host's chrome can advertise (the DocSite sidebar renders every registered provider's links beneath the matching area's table of contents). Implementations must be cheap to resolve on the request path — derive purely from configured options, never from the site projection.
public interface IDownloadLinkProvider
{
    /// Returns the links available for locale (or the default locale when null), each with a locale-appropriate URL.
    
public IReadOnlyList<DownloadLink> GetLinks(string locale = null)
; }