I read about ASP.net core 2.2 and I found reference about generic host.
I tried to create console app with backgroundService under example: https://github.com/aspnet/AspNetCore.Docs/tree/master/aspnetcore/fundamentals/host/generic-host/samples/
var param = Console.ReadLine();
var host = new HostBuilder().ConfigureServices((hostContext, services) =>
{
services.AddHostedService<MyCustomSerivce>();
}
The problem is how can be passed argument from command line (in my case 'param'), that will specified internal logic in particular background service.