Page Contents

Home > @loopback/context > InvocationContext > (constructor)

InvocationContext.constructor

Construct a new instance of InvocationContext

Signature:

constructor(parent: Context, target: object, methodName: string, args: InvocationArgs);

Parameters

Parameter Type Description
parent Context Parent context, such as the RequestContext
target object Target class (for static methods) or prototype/object (for instance methods)
methodName string Method name
args InvocationArgs An array of arguments