@fluidframework/base-host Package
Packages > @fluidframework/base-host
Classes
Class | Description |
---|---|
BaseHost | |
UpgradeManager |
Functions
Function | Description |
---|---|
initializeContainerCode(container, pkgForCodeProposal) | Ensures that the given container has an approved code proposal, and proposes the code package passed if needed. Note that although this guarantees an approved code proposal before returning, the context may not have been reloaded yet. |
Interfaces
Interface | Description |
---|---|
IBaseHostConfig | Host config that contains a url resolver to resolve the url and then provides a list of document service factories from which one can be selected based on protocol of resolved url. |
IUpgradeFnConfig | |
IUpgradeRuntime |
Functions
initializeContainerCode
Ensures that the given container has an approved code proposal, and proposes the code package passed if needed. Note that although this guarantees an approved code proposal before returning, the context may not have been reloaded yet.
Signature:
export declare function initializeContainerCode(container: Container, pkgForCodeProposal: IFluidCodeDetails): Promise<void>;
Parameters
Parameter | Type | Description |
---|---|---|
container | Container | The container to be initialized with the code |
pkgForCodeProposal | IFluidCodeDetails | The code to propose if a proposal has not already been made |
Returns:
Promise<void>