Add EnvelopeGenerator.WorkerService as background worker

Added a new WorkerService project to the solution, targeting .NET 8.0 and using Microsoft.Extensions.Hosting. Implemented a Worker class that logs periodically, set up hosting in Program.cs, and included configuration files for logging and development. Updated the solution file to include and configure the new project.
This commit is contained in:
2026-01-20 16:46:30 +01:00
parent ff3a146636
commit 786a3e128d
7 changed files with 79 additions and 0 deletions

View File

@@ -0,0 +1,7 @@
using EnvelopeGenerator.WorkerService;
var builder = Host.CreateApplicationBuilder(args);
builder.Services.AddHostedService<Worker>();
var host = builder.Build();
host.Run();