PostInvocationContext class
Context on a function after it executes.
- Extends
Constructors
| Post |
For testing purposes only. This will always be constructed for you when run in the context of the Azure Functions runtime |
Properties
| error | The error thrown by the function, or null/undefined if there is no error. Changes to this value will affect the overall result of the function |
| inputs | The arguments passed to this specific invocation. |
| result | The result of the function. Changes to this value will affect the overall result of the function |
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 |
| 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 |
Constructor Details
PostInvocationContext(PostInvocationContextInit)
For testing purposes only. This will always be constructed for you when run in the context of the Azure Functions runtime
new PostInvocationContext(init?: PostInvocationContextInit)
Parameters
Property Details
error
The error thrown by the function, or null/undefined if there is no error. Changes to this value will affect the overall result of the function
error: unknown
Property Value
unknown
inputs
The arguments passed to this specific invocation.
inputs: unknown[]
Property Value
unknown[]
result
The result of the function. Changes to this value will affect the overall result of the function
result: unknown
Property Value
unknown
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 InvocationHookContext.hookData
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 From InvocationHookContext.invocationContext