default
default: object;
Type declaration
boot()
boot: (options?) => Promise<RuntimeAPI>;
Initializes .NET runtime and binds C# APIs.
Parameters
• options?: BootOptions
Specify to configure the boot process.
Returns
Promise
<RuntimeAPI
>
Promise that resolves into .NET runtime instance.
BootStatus
BootStatus: typeof BootStatus;
dotnet
dotnet: object;
.NET internal modules and associated utilities.
dotnet.buildConfig()
buildConfig: (resources, root?) => Promise<RuntimeConfig>;
Builds .NET runtime configuration.
Parameters
• resources: BootResources
Resources required for runtime initialization.
• root?: string
When specified, assumes boot resources are side-loaded from the specified root.
Returns
Promise
<RuntimeConfig
>
dotnet.getMain()
getMain: (root?) => Promise<ModuleAPI & object>;
Fetches main dotnet module (dotnet.js
).
Parameters
• root?: string
Returns
Promise
<ModuleAPI
& object
>
dotnet.getNative()
getNative: (root?) => Promise<unknown & object>;
Fetches dotnet native module (dotnet.native.js
).
Parameters
• root?: string
Returns
Promise
<unknown
& object
>
dotnet.getRuntime()
getRuntime: (root?) => Promise<unknown & object>;
Fetches dotnet runtime module (dotnet.runtime.js
).
Parameters
• root?: string
Returns
Promise
<unknown
& object
>
exit()
exit: (code?, reason?) => Promise<void>;
Terminates .NET 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
resources
resources: BootResources;