Extension that is easy way to managing .NET ConsoleApp
using PackZero.HostedConsoleService;
define class public class AppHostedService : IHostedService
Example Program.cs definion
var host = Host.CreateDefaultBuilder(args);
host.RunAppZeroConsole<AppHostedService>(actionServices: services =>
{
services.AddLogging(); //any service definitions
});