Created UserService

This commit is contained in:
Chase Tucker
2024-02-28 15:35:40 -07:00
parent a2390c83e4
commit 1a3f0de8a7
250 changed files with 10688 additions and 0 deletions

View File

@ -0,0 +1,18 @@
namespace FabApprovalWorkerService.Workers;
public class UserCertificationUpdateWorker : BackgroundService {
private readonly ILogger<UserCertificationUpdateWorker> _logger;
public UserCertificationUpdateWorker(ILogger<UserCertificationUpdateWorker> logger) {
_logger = logger;
}
protected override async Task ExecuteAsync(CancellationToken stoppingToken) {
while (!stoppingToken.IsCancellationRequested) {
if (_logger.IsEnabled(LogLevel.Information)) {
_logger.LogInformation("UserCertificationUpdateWorker running at: {time}", DateTimeOffset.Now);
}
await Task.Delay(1000, stoppingToken);
}
}
}