LoadContainerRuntimeParams Interface
This object holds the parameters necessary for the loadContainerRuntime(params) function.
To use, import via @fluidframework/container-runtime/legacy
.
For more information about our API support guarantees, see here.
Signature
export interface LoadContainerRuntimeParams
Properties
Property | Alerts | Modifiers | Type | Description |
---|---|---|---|---|
containerScope | Alpha |
optional |
FluidObject | runtime services provided with context |
context | Alpha |
IContainerContext | Context of the container. | |
existing | Alpha |
boolean | Pass 'true' if loading from an existing snapshot. | |
minVersionForCollab | Alpha |
optional |
MinimumVersionForCollab |
Minimum version of the FF runtime that is required to collaborate on new documents. The input should be a string that represents the minimum version of the FF runtime that should be supported for collaboration. The format of the string must be in valid semver format. The inputted version will be used to determine the default configuration for IContainerRuntimeOptionsInternal to ensure compatibility with the specified version. |
provideEntryPoint | Alpha |
(containerRuntime: IContainerRuntime) => Promise<FluidObject> | Promise that resolves to an object which will act as entryPoint for the Container. | |
registryEntries | Alpha |
NamedFluidDataStoreRegistryEntries | Mapping from data store types to their corresponding factories | |
requestHandler | Deprecated , Alpha |
optional |
(request: IRequest, runtime: IContainerRuntime) => Promise<IResponse> | Request handler for the request() method of the container runtime. Only relevant for back-compat while we remove the request() method and move fully to entryPoint as the main pattern. |
runtimeOptions | Alpha |
optional |
IContainerRuntimeOptions | Additional options to be passed to the runtime |
Property Details
containerScope
runtime services provided with context
For more information about our API support guarantees, see here.
Signature
containerScope?: FluidObject;
Type: FluidObject
context
Context of the container.
For more information about our API support guarantees, see here.
Signature
context: IContainerContext;
Type: IContainerContext
existing
Pass 'true' if loading from an existing snapshot.
For more information about our API support guarantees, see here.
Signature
existing: boolean;
Type: boolean
minVersionForCollab
Minimum version of the FF runtime that is required to collaborate on new documents. The input should be a string that represents the minimum version of the FF runtime that should be supported for collaboration. The format of the string must be in valid semver format.
The inputted version will be used to determine the default configuration for IContainerRuntimeOptionsInternal to ensure compatibility with the specified version.
For more information about our API support guarantees, see here.
Signature
minVersionForCollab?: MinimumVersionForCollab;
Type: MinimumVersionForCollab
Example
minVersionForCollab: "2.0.0"
provideEntryPoint
Promise that resolves to an object which will act as entryPoint for the Container.
For more information about our API support guarantees, see here.
Signature
provideEntryPoint: (containerRuntime: IContainerRuntime) => Promise<FluidObject>;
Type: (containerRuntime: IContainerRuntime) => Promise<FluidObject>
registryEntries
Mapping from data store types to their corresponding factories
For more information about our API support guarantees, see here.
Signature
registryEntries: NamedFluidDataStoreRegistryEntries;
Type: NamedFluidDataStoreRegistryEntries
requestHandler
Request handler for the request() method of the container runtime. Only relevant for back-compat while we remove the request() method and move fully to entryPoint as the main pattern.
Will be removed once Loader LTS version is "2.0.0-internal.7.0.0". Migrate all usage of IFluidRouter to the "entryPoint" pattern. Refer to Removing-IFluidRouter.md
For more information about our API support guarantees, see here.
Signature
requestHandler?: (request: IRequest, runtime: IContainerRuntime) => Promise<IResponse>;
Type: (request: IRequest, runtime: IContainerRuntime) => Promise<IResponse>
runtimeOptions
Additional options to be passed to the runtime
For more information about our API support guarantees, see here.
Signature
runtimeOptions?: IContainerRuntimeOptions;
Type: IContainerRuntimeOptions