Skip to main content
Version: v2

IHostLoader Interface

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

This API is provided for existing users, but is not recommended for new users.

To use, import via @fluidframework/container-definitions/legacy.

For more information about our API support guarantees, see here.

Signature​

export interface IHostLoader extends ILoader

Extends: ILoader

Methods​

MethodAlertsReturn TypeDescription
createDetachedContainer(codeDetails, createDetachedProps)BetaPromise<IContainer>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, createDetachedProps)BetaPromise<IContainer>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.

Method Details​

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.

This API is provided for existing users, but is not recommended for new users.

For more information about our API support guarantees, see here.

Signature​

createDetachedContainer(codeDetails: IFluidCodeDetails, createDetachedProps?: {
canReconnect?: boolean;
clientDetailsOverride?: IClientDetails;
}): Promise<IContainer>;

Parameters​

ParameterModifiersTypeDescription
codeDetailsIFluidCodeDetails
createDetachedPropsoptional{ canReconnect?: boolean; clientDetailsOverride?: IClientDetails; }

Returns​

Return type: 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.

This API is provided for existing users, but is not recommended for new users.

For more information about our API support guarantees, see here.

Signature​

rehydrateDetachedContainerFromSnapshot(snapshot: string, createDetachedProps?: {
canReconnect?: boolean;
clientDetailsOverride?: IClientDetails;
}): Promise<IContainer>;

Parameters​

ParameterModifiersTypeDescription
snapshotstring
createDetachedPropsoptional{ canReconnect?: boolean; clientDetailsOverride?: IClientDetails; }

Returns​

Return type: Promise<IContainer>