Class ThreadTask
- Namespace
 - Alis.Core.Aspect.Thread
 
- Assembly
 - Alis.dll
 
The thread task class
public class ThreadTaskInheritance
Inherited Members
Constructors
ThreadTask(Action<CancellationToken>, CancellationToken)
Initializes a new instance of the Alis.Core.Aspect.Thread.ThreadTask class
public ThreadTask(Action<CancellationToken> action, CancellationToken token)Parameters
actionAction<CancellationToken>- 
The action
 tokenCancellationToken
Properties
Action
Gets or sets the value of the action
private Action<CancellationToken> Action { get; }Property Value
Token
Gets or sets the value of the token
private CancellationToken Token { get; }Property Value
Methods
Execute(CancellationToken)
Executes this instance
public void Execute(CancellationToken token)Parameters
tokenCancellationToken