Initial commit

This commit is contained in:
Holden
2026-06-17 22:27:12 -05:00
commit c7b8857208
35 changed files with 565 additions and 0 deletions

View File

@@ -0,0 +1,17 @@
namespace RecNet.MigrationService;
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);
}
}
}