Make TaskRunner compile (#221)

This commit is contained in:
Leendert de Borst
2024-12-04 14:24:55 +01:00
parent e655dcedb0
commit 2b541dc28d
3 changed files with 4 additions and 2 deletions

View File

@@ -12,9 +12,9 @@ namespace AliasVault.TaskRunner;
/// </summary>
public class Config
{
// TODO: update config properties to only use the ones that are needed for TaskRunner.
/// <summary>
/// TODO: update config properties to only use the ones that are needed for TaskRunner.
/// TOOD: If none are needed, remove this class.
/// Gets or sets whether TLS is enabled for the SMTP service.
/// </summary>
public string SmtpTlsEnabled { get; set; } = "false";

View File

@@ -9,6 +9,7 @@ using System.Reflection;
using AliasServerDb;
using AliasServerDb.Configuration;
using AliasVault.Logging;
using AliasVault.TaskRunner;
using AliasVault.TaskRunner.Workers;
using AliasVault.WorkerStatus.ServiceExtensions;
using Microsoft.EntityFrameworkCore;

View File

@@ -17,5 +17,6 @@ public class TaskRunnerWorker(ILogger<TaskRunnerWorker> logger) : BackgroundServ
protected override async Task ExecuteAsync(CancellationToken stoppingToken)
{
logger.LogWarning("AliasVault.TaskRunnerWorker started at: {Time}", DateTimeOffset.Now);
await Task.Delay(1000);
}
}