Creates a new thread task but does not start it.
Namespace:
Gallio.FrameworkAssembly: Gallio (in Gallio.dll) Version: 3.3.0.0 (3.3.459.0)
Syntax
| C# |
|---|
public static ThreadTask CreateThreadTask( string name, Action action ) |
| Visual Basic (Declaration) |
|---|
Public Shared Function CreateThreadTask ( _ name As String, _ action As Action _ ) As ThreadTask |
Parameters
- name
- Type: System..::.String
The name of the task, or null to create a new name based on the method associated with the action.
- action
- Type: Gallio.Common..::.Action
The action to perform.
Return Value
The new thread task.
Remarks
There is no need to call WatchTask(Task) on the returned task.
Exceptions
| Exception | Condition |
|---|---|
| System..::.ArgumentNullException | Thrown if action is null. |
