Page Contents
Home > @loopback/context > InvocationContext
InvocationContext class
InvocationContext represents the context to invoke interceptors for a method. The context can be used to access metadata about the invocation as well as other dependencies.
Signature:
export declare class InvocationContext extends Context
Extends: Context
Constructors
| Constructor | Modifiers | Description |
|---|---|---|
|
Construct a new instance of |
Properties
| Property | Modifiers | Type | Description |
|---|---|---|---|
|
| |||
|
|
string |
Description of the invocation | |
|
|
string | ||
|
|
InvocationSource<unknown> | undefined |
(Optional) | |
|
|
object | ||
|
|
Function |
The target class, such as | |
|
|
string |
The target name, such as |
Methods
| Method | Modifiers | Description |
|---|---|---|
|
Assert the method exists on the target. An error will be thrown if otherwise. | ||
|
Invoke the target method with the given context | ||