Nuget CodeQL MIT

PackZero.HostedConsoleService

Extension that is easy way to managing .NET ConsoleApp

How to Use

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
});