Skip to main content
Version: v1

IFluidHandleContext Interface

An IFluidHandleContext describes a routing context from which other IFluidHandleContexts are defined

Signature

export interface IFluidHandleContext extends IProvideFluidHandleContext

Extends: IProvideFluidHandleContext

Properties

PropertyModifiersTypeDescription
absolutePathstringThe absolute path to the handle context from the root.
isAttachedbooleanFlag indicating whether or not the entity has services attached.
routeContextoptionalIFluidHandleContextThe parent IFluidHandleContext that has provided a route path to this IFluidHandleContext or undefined at the root.

Methods

MethodReturn TypeDescription
attachGraph()voidRuns through the graph and attach the bounded handles.
resolveHandle(request)Promise<IResponse>

Property Details

absolutePath

The absolute path to the handle context from the root.

Signature

readonly absolutePath: string;

Type: string

isAttached

Flag indicating whether or not the entity has services attached.

Signature

readonly isAttached: boolean;

Type: boolean

routeContext

The parent IFluidHandleContext that has provided a route path to this IFluidHandleContext or undefined at the root.

Signature

readonly routeContext?: IFluidHandleContext;

Type: IFluidHandleContext

Method Details

attachGraph

Runs through the graph and attach the bounded handles.

Signature

attachGraph(): void;

resolveHandle

Signature

resolveHandle(request: IRequest): Promise<IResponse>;

Parameters

ParameterTypeDescription
requestIRequest

Returns

Return type: Promise<IResponse>