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