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
GetLinks
#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
localestring
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)
;
}