Class EmbeddedBundleUi
A IMillraceDashboardUi whose assets are embedded resources under ui/.
public abstract class EmbeddedBundleUi : IMillraceDashboardUi
- Inheritance
-
EmbeddedBundleUi
- Implements
- Inherited Members
Remarks
Every official UI package ships the same way โ a prebuilt bundle compiled into the assembly, so a consumer installs one NuGet package and never touches Node, npm or a CDN (ยง7). Only the assembly and the name differ, so the serving logic lives here once rather than three times: three copies would drift, and the drift would show up as one framework's dashboard 404ing an asset the others serve.
A UI package that is not a bundle of static files is free to implement the interface directly; this is a convenience for the shape all three official ones happen to have.
Constructors
- EmbeddedBundleUi(Assembly, string)
A IMillraceDashboardUi whose assets are embedded resources under
ui/.
Properties
- Name
The UI's name, for the startup log line โ e.g. "React".
Methods
- OpenEntryDocument(out string)
The entry document served for the mount root and for any path with no matching asset.
- TryOpenAsset(string, out Stream, out string)
Opens the asset at
relativePath(no leading slash), or returns false if this bundle has no such asset.