public static IWebHost BuildWebHost(string[] args) { return WebHost.CreateDefaultBuilder(args) .UseStartup<Startup>() .Build(); }
public static IWebHost BuildWebHost(string[] args) => WebHost.CreateDefaultBuilder(args) .UseStartup <Startup>() .UseUrls("http://localhost:5001/") .Build();
public static IWebHostBuilder CreateWebHostBuilder(string[] args) => WebHost.CreateDefaultBuilder(args) .UseStartup <Startup>();
public static IWebHostBuilder CreateWebHostBuilder(string[] args) => WebHost.CreateDefaultBuilder(args) .UseUrls("http://*:5040") .UseStartup <Startup>() //Scope was interfering in Database DI in Job .UseDefaultServiceProvider(options => options.ValidateScopes = false);
public static IWebHost BuildWebHost(string[] args) => WebHost.CreateDefaultBuilder(args) .CaptureStartupErrors(true) .UseStartup <Startup>() .Build();
public static IWebHostBuilder CreateWebHostBuilder(string[] args) => WebHost.CreateDefaultBuilder(args) //.UseUrls("http://172.26.18.178:5000") .UseStartup <Startup>();
public static IWebHost BuildWebHost(string[] args) => WebHost.CreateDefaultBuilder(args) .UseStartup <Startup>() .UseConfiguration(Configuration) .UseSerilog() .Build();
public static IWebHostBuilder CreateWebHostBuilder(string[] args) { return(WebHost.CreateDefaultBuilder(args) .ConfigureAppConfiguration(builder => builder.AddDockerSecrets()) .UseStartup <Startup>()); }
public static IWebHostBuilder CreateWebHostBuilder(string[] args) => WebHost.CreateDefaultBuilder(args) .UseCloudFoundryHosting(5002) .UseStartup <Startup>();
public static IWebHostBuilder CreateWebHostBuilder(string[] args) => WebHost.CreateDefaultBuilder(args) // Need to add a certificate to use HTTPS // .UseUrls("http://*:5000", "https://*:5001") // Must specify here for use inside Containers .UseUrls("http://*:5000") .UseStartup <Startup>();
public static IWebHostBuilder CreateWebHostBuilder(string[] args) => WebHost.CreateDefaultBuilder(args) .UseStartup <Startup>() .UseClassifiedAdsLogger();
private static IWebHostBuilder CreateWebHostBuilder(string[] args) => WebHost.CreateDefaultBuilder(args) .UseKestrel() .UseContentRoot(Directory.GetCurrentDirectory()) .UseStartup <Startup>();