Start operation implementation
This commit is contained in:
17
Hcs.WebApp/BackgroundServices/OperationExecutionService.cs
Normal file
17
Hcs.WebApp/BackgroundServices/OperationExecutionService.cs
Normal file
@ -0,0 +1,17 @@
|
||||
namespace Hcs.WebApp.BackgroundServices
|
||||
{
|
||||
public class OperationExecutionService(OperationExecutionState state) : BackgroundService
|
||||
{
|
||||
private readonly OperationExecutionState state = state;
|
||||
|
||||
protected override async Task ExecuteAsync(CancellationToken stoppingToken)
|
||||
{
|
||||
while (!stoppingToken.IsCancellationRequested)
|
||||
{
|
||||
await Task.Delay(10000, stoppingToken);
|
||||
|
||||
// TODO
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user