BootOptions
ts
type BootOptions: object;
Boot process configuration.
Type declaration
config?
ts
readonly optional config: RuntimeConfig;
.NET runtime configuration.
create()?
ts
readonly optional create: (config) => Promise<RuntimeAPI>;
Creates .NET runtime instance.
Parameters
• config: RuntimeConfig
Returns
Promise
<RuntimeAPI
>
export()?
ts
readonly optional export: (runtime) => Promise<void>;
Binds exported C# APIs.
Parameters
• runtime: RuntimeAPI
Returns
Promise
<void
>
import()?
ts
readonly optional import: (runtime) => Promise<void>;
Binds imported C# APIs.
Parameters
• runtime: RuntimeAPI
Returns
Promise
<void
>
resources?
ts
readonly optional resources: BootResources;
Resources required to boot .NET runtime.
root?
ts
readonly optional root: string;
Path to directory where boot resources are hosted (eg, /bin
).
run()?
ts
readonly optional run: (runtime) => Promise<void>;
Starts .NET runtime.
Parameters
• runtime: RuntimeAPI
Returns
Promise
<void
>