chore: initialize backend solution

This commit is contained in:
xiong
2026-07-26 04:29:58 +08:00
commit f5109de879
29 changed files with 774 additions and 0 deletions

16
Tiku.Worker/Worker.cs Normal file
View File

@@ -0,0 +1,16 @@
namespace Tiku.Worker;
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);
}
}
}