public class Program { public static void Main(string[] args) { //Enable after handling database context CreateHostBuilder(args).Build().MigrateDatabase().Run(); } public static IHostBuilder CreateHostBuilder(string[] args) => Host.CreateDefaultBuilder(args) .ConfigureWebHostDefaults(webBuilder => { webBuilder.UseKestrel(option => { option.Limits.KeepAliveTimeout = TimeSpan.FromSeconds(10); }); webBuilder.UseStartup<Startup>(); }); }