HookContext class
Base class for all hook context objects
Constructors
| Hook |
For testing purposes only. This will always be constructed for you when run in the context of the Azure Functions runtime |
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
HookContext(HookContextInit)
For testing purposes only. This will always be constructed for you when run in the context of the Azure Functions runtime
new HookContext(init?: HookContextInit)
Parameters
- init
- HookContextInit
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>