feat(nextRun): рассчет поля NextRun по расписанию
This commit is contained in:
19
PARR.NextRunWorker/Worker.cs
Normal file
19
PARR.NextRunWorker/Worker.cs
Normal 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();
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user