Class Async<T>
Converts an async Task into an action.
Assembly: QFSW.QC.dll
Syntax
public class Async<T> : ICommandAction
Type Parameters
Name |
Description |
T |
The return type of the Task to convert.
|
Constructors
Async(Task<T>, Action<T>)
Declaration
public Async(Task<T> task, Action<T> onResult)
Parameters
Type |
Name |
Description |
Task<T> |
task |
The async Task to convert.
|
Action<T> |
onResult |
The action to invoke when the Task completes.
|
Properties
IsFinished
Declaration
public bool IsFinished { get; }
Property Value
StartsIdle
Declaration
public bool StartsIdle { get; }
Property Value
Methods
Finalize(ActionContext)
Declaration
public void Finalize(ActionContext context)
Parameters
Start(ActionContext)
Declaration
public void Start(ActionContext context)
Parameters
Implements
Extension Methods