|
OpenTAP 9.31
API Reference
|
Implementing this interface will enable hooks before and after resources are opened and closed. More...
Public Member Functions | |
| void | BeforeOpen (IEnumerable< IResourceReferences > resources, CancellationToken abortToken) |
| This hook is triggered before IResource.Open is executed. Only called once when e.g. a TestStep with mulitple resources starts. More... | |
| void | AfterClose (IEnumerable< IResourceReferences > resources, CancellationToken abortToken) |
| This hook is triggered after the TestStep or TestPlan is done executing. If triggered by a TestStep, defered actions may still be running. More... | |
Implementing this interface will enable hooks before and after resources are opened and closed.
| void OpenTap.ILockManager.AfterClose | ( | IEnumerable< IResourceReferences > | resources, |
| CancellationToken | abortToken | ||
| ) |
This hook is triggered after the TestStep or TestPlan is done executing. If triggered by a TestStep, defered actions may still be running.
| resources | This will contain the same resources as given to BeforeOpen".</param> <param name="abortToken">A token that will be signalled if the locking action should be cancelled. |
| void OpenTap.ILockManager.BeforeOpen | ( | IEnumerable< IResourceReferences > | resources, |
| CancellationToken | abortToken | ||
| ) |
This hook is triggered before IResource.Open is executed. Only called once when e.g. a TestStep with mulitple resources starts.
| resources | The resources that will be opened. |
| abortToken | A token that will be signalled if the locking action should be cancelled. |
OpenTAP 9.31 API built Fri Oct 17 2025 07:12:36