feat(nextRun): рассчет поля NextRun по расписанию

This commit is contained in:
Mikhail Trubnikov
2024-02-05 16:05:02 +10:00
parent 51503a5964
commit bacd6f0021
17 changed files with 305 additions and 4 deletions

View File

@@ -0,0 +1,19 @@
using PARR.NextRun;
namespace PARR.NextRunWorker
{
public class Worker : BackgroundService
{
private readonly INextRunManager nextRunManager;
public Worker(INextRunManager nextRunManager)
{
this.nextRunManager = nextRunManager;
}
protected override async Task ExecuteAsync(CancellationToken stoppingToken)
{
await nextRunManager.StartAsync();
}
}
}