chore(agent): remove placeholder Worker.cs
Worker.cs was a template artifact that only logged 'running' every second. It was never registered in DI. AgentRegistrationService handles all background work.
This commit is contained in:
1 parent
1c08e0394d
commit
f937117f5a
1 file changed
-16
@@ -1,16 +0,0 @@
|
||||
namespace Heimdall.Agent;
|
||||
|
||||
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);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user