IHostLoader Interface

Packages > @fluidframework/container-definitions > IHostLoader

The Host’s view of the Loader, used for loading Containers

Signature:

export interface IHostLoader extends ILoader 

Extends: ILoader

Methods

List of methods of this class
Method Description
createDetachedContainer(codeDetails) Creates a new container using the specified chaincode but in an unattached state. While unattached all updates will only be local until the user explicitly attaches the container to a service provider.
rehydrateDetachedContainerFromSnapshot(snapshot) Creates a new container using the specified snapshot but in an unattached state. While unattached all updates will only be local until the user explicitly attaches the container to a service provider.

Methods

createDetachedContainer

Creates a new container using the specified chaincode but in an unattached state. While unattached all updates will only be local until the user explicitly attaches the container to a service provider.

Signature:

createDetachedContainer(codeDetails: IFluidCodeDetails): Promise<IContainer>;

Parameters

List of parameters
Parameter Type Description
codeDetails IFluidCodeDetails

Returns:

Promise<IContainer>

rehydrateDetachedContainerFromSnapshot

Creates a new container using the specified snapshot but in an unattached state. While unattached all updates will only be local until the user explicitly attaches the container to a service provider.

Signature:

rehydrateDetachedContainerFromSnapshot(snapshot: string): Promise<IContainer>;

Parameters

List of parameters
Parameter Type Description
snapshot string

Returns:

Promise<IContainer>