示例#1
0
        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());
        }
示例#2
0
        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();
        }
示例#3
0
        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();
        }
示例#4
0
        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();
        }
示例#5
0
        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();
        }
示例#6
0
        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();
        }