public static async Task Main(string[] args) { IHost host = CreateHostBuilder(args).Build(); using (IServiceScope scope = host.Services.CreateScope()) { await AppStart.Run(scope.ServiceProvider); } host.Run(); }