Table of Contents

Class ThreadTask

Namespace
Alis.Core.Aspect.Thread
Assembly
Alis.dll

The thread task class

public class ThreadTask

Inheritance

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

action Action<CancellationToken>

The action

token CancellationToken

Properties

Action

Gets or sets the value of the action

private Action<CancellationToken> Action { get; }

Property Value

Action<CancellationToken>

Token

Gets or sets the value of the token

private CancellationToken Token { get; }

Property Value

CancellationToken

Methods

Execute(CancellationToken)

Executes this instance

public void Execute(CancellationToken token)

Parameters

token CancellationToken