Add project files.

This commit is contained in:
Khwezi Mngoma
2026-05-09 18:27:55 +02:00
commit 101ed22d92
16 changed files with 1076 additions and 0 deletions
+17
View File
@@ -0,0 +1,17 @@
namespace LiteCharmsScheduler.Workers
{
public class Worker(ILogger<Worker> logger) : BackgroundService
{
protected override async Task ExecuteAsync(CancellationToken stoppingToken)
{
while (!stoppingToken.IsCancellationRequested)
{
if (logger.IsEnabled(LogLevel.Information))
{
logger.LogInformation("Worker running at: {time}", DateTimeOffset.Now);
}
await Task.Delay(1000, stoppingToken);
}
}
}
}