Table of Contents

Method TryOpenAsset

Namespace
Millrace.Dashboard
Assembly
Millrace.Dashboard.dll

TryOpenAsset(string, out Stream, out string)

Opens the asset at relativePath (no leading slash), or returns false if this bundle has no such asset.

bool TryOpenAsset(string relativePath, out Stream content, out string contentType)

Parameters

relativePath string
content Stream
contentType string

Returns

bool

Remarks

A miss is normal, not an error: client-side routes look like paths but have no asset, and the caller falls back to the entry document so a deep link still loads the application.