public static IHostBuilder CreateHostBuilder(string[] args) => Host.CreateDefaultBuilder(args) .UseSerilog() .ConfigureWebHostDefaults(webBuilder => { webBuilder.UseStartup <Startup>() .UseUrls(StartupHelpers.GetRunUrl(args) ?? "http://localhost:8002"); });