Delegate ResourceHookCallback
ResourceHookCallback is a delegate that defines the signature of ResourceHook callback functions.
Callbacks take a set of ResourceHookArgs and an optional CancellationToken.
Callbacks may raise an error by throwing an exception, which will be propagated to the resource operation that
triggered the hook.
Assembly: Pulumi.dll
Syntax
public delegate Task ResourceHookCallback(ResourceHookArgs args, CancellationToken cancellationToken = default)
Parameters
| Type |
Name |
Description |
| ResourceHookArgs |
args |
ResourceHookCallback is a delegate that defines the signature of callback functions. Callbacks take a set of and an optional . Callbacks may raise an error by throwing an exception, which will be propagated to the resource operation that triggered the hook. |
| CancellationToken |
cancellationToken |
ResourceHookCallback is a delegate that defines the signature of callback functions. Callbacks take a set of and an optional . Callbacks may raise an error by throwing an exception, which will be propagated to the resource operation that triggered the hook. |
Returns
| Type |
Description |
| Task |
ResourceHookCallback is a delegate that defines the signature of callback functions. Callbacks take a set of and an optional . Callbacks may raise an error by throwing an exception, which will be propagated to the resource operation that triggered the hook. |