18 lines
490 B
C#
18 lines
490 B
C#
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
|
|
}
|
|
}
|
|
}
|
|
}
|