DesktopAssetExtensions class

Namespace Runic.Assets.Desktop in Runic.Assets.Desktop 0.23.0

public static class DesktopAssetExtensions

Adapts authoritative asset snapshots to Runic Desktop request-scoped delivery.

Methods

ToDesktopContentHandler

public static ContentHandler ToDesktopContentHandler(this IAssetSource source, AssetRoutingOptions? routing = null)

Creates a Desktop content handler over the source's current immutable snapshots. Request paths resolve with AssetManifest.TryResolveRequestPath, the same rules the ASP.NET Core adapter uses, and responses carry the same headers: a text/* media type without a charset is sent with ; charset=utf-8. HTML assets carry AssetRoutingOptions.ContentSecurityPolicy when it is set; the surface adds its own frame-ancestors policy as a second header.