예제 #1
0
 public static IWebHost BuildWebHost(string[] args)
 {
     return WebHost.CreateDefaultBuilder(args)
         .UseStartup<Startup>()
         .Build();
 }
예제 #2
0
 public static IWebHost BuildWebHost(string[] args) =>
 WebHost.CreateDefaultBuilder(args)
 .UseStartup <Startup>()
 .UseUrls("http://localhost:5001/")
 .Build();
예제 #3
0
 public static IWebHostBuilder CreateWebHostBuilder(string[] args) =>
 WebHost.CreateDefaultBuilder(args)
 .UseStartup <Startup>();
예제 #4
0
 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);
예제 #5
0
 public static IWebHost BuildWebHost(string[] args) =>
 WebHost.CreateDefaultBuilder(args)
 .CaptureStartupErrors(true)
 .UseStartup <Startup>()
 .Build();
예제 #6
0
 public static IWebHostBuilder CreateWebHostBuilder(string[] args) =>
 WebHost.CreateDefaultBuilder(args)
 //.UseUrls("http://172.26.18.178:5000")
 .UseStartup <Startup>();
예제 #7
0
 public static IWebHost BuildWebHost(string[] args) =>
 WebHost.CreateDefaultBuilder(args)
 .UseStartup <Startup>()
 .UseConfiguration(Configuration)
 .UseSerilog()
 .Build();
예제 #8
0
 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>();
예제 #10
0
 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>();
예제 #11
0
 public static IWebHostBuilder CreateWebHostBuilder(string[] args) =>
 WebHost.CreateDefaultBuilder(args)
 .UseStartup <Startup>()
 .UseClassifiedAdsLogger();
예제 #12
0
 private static IWebHostBuilder CreateWebHostBuilder(string[] args) =>
 WebHost.CreateDefaultBuilder(args)
 .UseKestrel()
 .UseContentRoot(Directory.GetCurrentDirectory())
 .UseStartup <Startup>();