Skip to content 

ILoader Interface

Packages > @fluidframework/container-definitions > ILoader

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

Signature:

export interface ILoader extends IFluidRouter 

Extends: IFluidRouter

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.
resolve(request) Resolves the resource specified by the URL + headers contained in the request object to the underlying container that will resolve the request.An analogy for this is resolve is a DNS resolve of a Fluid container. Request then executes a request against the server found from the resolve step.

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: ISnapshotTree): Promise<IContainer>;

Parameters

List of parameters
Parameter Type Description
snapshot ISnapshotTree

Returns:

Promise<IContainer>

resolve

Resolves the resource specified by the URL + headers contained in the request object to the underlying container that will resolve the request.

An analogy for this is resolve is a DNS resolve of a Fluid container. Request then executes a request against the server found from the resolve step.

Signature:

resolve(request: IRequest): Promise<IContainer>;

Parameters

List of parameters
Parameter Type Description
request IRequest

Returns:

Promise<IContainer>