Creating a Headless Service from a .NET Core Console App

Some description

Run a console app as a headless, async service.

Sources:

dotnet add package Microsoft.Extensions.Hosting
public static async Task Main(string[] args)
{
    var host = new HostBuilder()
        .Build();
 
    await host.RunAsync();
}