RelativeLoader Class
Packages > @fluidframework/container-loader > RelativeLoader
Signature:
export declare class RelativeLoader extends EventEmitter implements ILoader
Extends: EventEmitter
Implements: ILoader
Constructors
Constructor | Modifiers | Description |
---|---|---|
(constructor)(loader, baseRequest) | BaseRequest is the original request that triggered the load. This URL is used in case credentials need to be fetched again. |
Properties
Property | Modifiers | Type | Description |
---|---|---|---|
IFluidRouter | IFluidRouter |
Methods
Method | Modifiers | Description |
---|---|---|
createDetachedContainer(source) | ||
rehydrateDetachedContainerFromSnapshot(source) | ||
request(request) | ||
resolve(request) | ||
resolveContainer(container) |
Constructors
RelativeLoader.(constructor)
BaseRequest is the original request that triggered the load. This URL is used in case credentials need to be fetched again.
Signature:
constructor(loader: ILoader, baseRequest: () => IRequest | undefined);
Parameters
Parameter | Type | Description |
---|---|---|
loader | ILoader | |
baseRequest | () => IRequest | undefined |
Properties
IFluidRouter
Signature:
get IFluidRouter(): IFluidRouter;
Methods
createDetachedContainer
Signature:
createDetachedContainer(source: IFluidCodeDetails): Promise<Container>;
Parameters
Parameter | Type | Description |
---|---|---|
source | IFluidCodeDetails |
Returns:
Promise<Container>
rehydrateDetachedContainerFromSnapshot
Signature:
rehydrateDetachedContainerFromSnapshot(source: ISnapshotTree): Promise<Container>;
Parameters
Parameter | Type | Description |
---|---|---|
source | ISnapshotTree |
Returns:
Promise<Container>
request
Signature:
request(request: IRequest): Promise<IResponse>;
Parameters
Parameter | Type | Description |
---|---|---|
request | IRequest |
Returns:
Promise<IResponse>
resolve
Signature:
resolve(request: IRequest): Promise<IContainer>;
Parameters
Parameter | Type | Description |
---|---|---|
request | IRequest |
Returns:
Promise<IContainer>
resolveContainer
Signature:
resolveContainer(container: Container): void;
Parameters
Parameter | Type | Description |
---|---|---|
container | Container |
Returns:
void