Skip to main content
Version: v1

IRuntimeFactory Interface

Exported module definition

Provides the entry point for the ContainerContext to load the proper IRuntime to start up the running instance of the Container.

Signature​

export interface IRuntimeFactory extends IProvideRuntimeFactory

Extends: IProvideRuntimeFactory

Methods​

MethodReturn TypeDescription
instantiateRuntime(context, existing)Promise<IRuntime>Instantiates a new IRuntime for the given IContainerContext to proxy to This is the main entry point to the Container's business logic

Method Details​

instantiateRuntime​

Instantiates a new IRuntime for the given IContainerContext to proxy to This is the main entry point to the Container's business logic

Signature​

instantiateRuntime(context: IContainerContext, existing?: boolean): Promise<IRuntime>;

Parameters​

ParameterModifiersTypeDescription
contextIContainerContextcontainer context to be supplied to the runtime
existingoptionalbooleanwhether to instantiate for the first time or from an existing context

Returns​

Return type: Promise<IRuntime>