default
default: object;Defined in: index.mts:5
Type Declaration
boot
boot: (resources, options?) => Promise<RuntimeAPI>;Initializes the runtime and binds C# APIs.
Parameters
resources
| string | Readonly<{ assemblies?: Readonly<{ content: ArrayBuffer; name: string; }>[]; icu?: Readonly<{ content: ArrayBuffer; name: string; }>[]; pdb?: Readonly<{ content: ArrayBuffer; name: string; }>[]; symbols?: Readonly<{ content: ArrayBuffer; name: string; }>[]; wasm: ArrayBuffer; }>
Either URL to the boot resources root (eg, /bin) or the preloaded content.
options?
Allows customizing the boot process and the runtime behaviour.
Returns
Promise<RuntimeAPI>
Promise that resolves into the runtime instance when the initialization is finished.
BootStatus
BootStatus: typeof BootStatus;dotnet
dotnet: DotnetHostBuilder = app.dotnet;exit
exit: (code?, reason?) => Promise<void>;Terminates the runtime and removes WASM module from memory.
Parameters
code?
number
Exit code; will use 0 (normal exit) by default.
reason?
string
Exit reason description (optional).
Returns
Promise<void>
getStatus
getStatus: () => BootStatus;Returns current runtime module lifecycle state.
Returns
BootStatus
manifest
manifest: Readonly<{
assemblies: string[];
entryAssemblyName: string;
icu: string[];
pdb: string[];
symbols: string[];
wasm: string;
}>;Lists resource names required to boot the runtime.