Adds a new task for the task manager to watch.
Namespace:
Gallio.FrameworkAssembly: Gallio (in Gallio.dll) Version: 3.3.0.0 (3.3.459.0)
Syntax
| C# |
|---|
public static void WatchTask( Task task ) |
| Visual Basic (Declaration) |
|---|
Public Shared Sub WatchTask ( _ task As Task _ ) |
Parameters
- task
- Type: Gallio.Common.Concurrency..::.Task
The task to watch.
Remarks
The task manager will track when the task starts and finishes, ensure that the task is aborted when the test ends, report any exception thrown by the task as a warning in the log, and include the task in the list of those to join and/or verify.
Exceptions
| Exception | Condition |
|---|---|
| System..::.ArgumentNullException | Thrown if task is null. |
