public static async Task <IWebHost> BuildWebHostAsync(string[] args) { var url = await AuxNotStatic.GetInfoMotorAux("WpOrcamento", 1); return(WebHost.CreateDefaultBuilder(args) .UseStartup <Startup>() .UseUrls(url.Url) .Build()); }
static async Task MainAsync(string[] args) { var url = await AuxNotStatic.GetInfoMotorAux("WpFinanceiro", 1); var host = WebHost.CreateDefaultBuilder(args) .UseKestrel() .UseContentRoot(Directory.GetCurrentDirectory()) .UseUrls(url.Url) //.UseUrls("http://localhost:5000") .UseIISIntegration() .UseStartup <Startup>() .Build(); host.Run(); }
static async Task MainAsync(string[] args) { var url = await AuxNotStatic.GetInfoMotorAux("WpQrCode", 1); var host = WebHost.CreateDefaultBuilder(args) .UseKestrel() .UseContentRoot(Directory.GetCurrentDirectory()) .UseUrls(url.Url) .UseIISIntegration() .UseStartup <Startup>() //.UseApplicationInsights() .Build(); host.Run(); }
static async Task MainAsync() { var url = await AuxNotStatic.GetInfoMotorAux("wpDocumento", 1); var host = new WebHostBuilder() .UseKestrel() .UseContentRoot(Directory.GetCurrentDirectory()) .UseUrls(url.Url) //.UseUrls("http://localhost:5000") .UseIISIntegration() .UseStartup <Startup>() .Build(); host.Run(); }
static async Task MainAsync() { var url = await AuxNotStatic.GetInfoMotorAux("wpProfissionais", 1); var host = new WebHostBuilder() .UseKestrel() .UseContentRoot(Directory.GetCurrentDirectory()) .UseUrls(url.Url) //.UseUrls("http://localhost.com:5300") .UseIISIntegration() .UseStartup <Startup>() .UseApplicationInsights() .Build(); host.Run(); }
static async Task MainAsync() { var url = await AuxNotStatic.GetInfoMotorAux("Seguranca", 1); var host = new WebHostBuilder() .UseKestrel() .UseContentRoot(Directory.GetCurrentDirectory()) //Lucas :) :D #if DEBUG .UseUrls("http://localhost:5300") #else .UseUrls(url.Url) #endif .UseStartup <Startup>() .UseApplicationInsights() .Build(); host.Run(); }