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
Method | Return Type | Description |
---|---|---|
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
Parameter | Modifiers | Type | Description |
---|---|---|---|
context | IContainerContext | container context to be supplied to the runtime | |
existing | optional | boolean | whether to instantiate for the first time or from an existing context |
Returns
Return type: Promise<IRuntime>