@fluidframework/base-host Package

Packages > @fluidframework/base-host

Classes

List of classes contained in this package or namespace
Class Description
BaseHost
UpgradeManager

Functions

List of functions contained in this package or namespace
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

List of interfaces contained in this package or namespace
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

List of 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>