QuickAdmin.Net Reference
C#
Show/Hide TOC
Background
Task
Execute
Async Method
任务执行主方法。
Definition
Namespace:
QuickAdmin.Service.Background
Assembly:
QuickAdmin.Net (in QuickAdmin.Net.dll) Version: 2.0.13
C#
Copy
protected
override
sealed
Task
ExecuteAsync
(
CancellationToken
stoppingToken
)
Parameters
stoppingToken
CancellationToken
指示停止的令牌。
Return Value
Task
Remarks
其内已依次分解为
OnTaskStartingAsync(CancellationToken)
、
OnTaskStartedAsync(CancellationToken)
、
DoWorkAsync(CancellationToken)
、
OnTaskStoppingAsync(bool, CancellationToken)
和
OnTaskStoppedAsync(bool, CancellationToken)
。
See Also
Reference
BackgroundTask Class
QuickAdmin.Service.Background Namespace
In This Article
Definition
Parameters
Return Value
Remarks
See Also