InvocationHookContext class
Base class for all invocation hook context objects
- Extends
Constructors
| Invocation |
For testing purposes only. This will always be constructed for you when run in the context of the Azure Functions runtime |
Properties
| invocation |
The context object passed to the function. This object is readonly. You may modify it, but attempting to overwrite it will throw an error |
Inherited Properties
| hook |
The recommended place to store and share data between hooks in the same scope (app-level vs invocation-level). You should use a unique property name so that it doesn't conflict with other hooks' data. This object is readonly. You may modify it, but attempting to overwrite it will throw an error |
Constructor Details
InvocationHookContext(InvocationHookContextInit)
For testing purposes only. This will always be constructed for you when run in the context of the Azure Functions runtime
new InvocationHookContext(init?: InvocationHookContextInit)
Parameters
Property Details
invocationContext
The context object passed to the function. This object is readonly. You may modify it, but attempting to overwrite it will throw an error
invocationContext: InvocationContext
Property Value
Inherited Property Details
hookData
The recommended place to store and share data between hooks in the same scope (app-level vs invocation-level). You should use a unique property name so that it doesn't conflict with other hooks' data. This object is readonly. You may modify it, but attempting to overwrite it will throw an error
hookData: Record<string, unknown>
Property Value
Record<string, unknown>
Inherited From HookContext.hookData