Ejemplo n.º 1
0
        public static void Main(string[] args)
        {
            var config = new ConfigurationBuilder()
                         .AddEnvironmentVariables(prefix: "ASPNETCORE_")
                         .Build();

            StartupBase.Init <Startup>(host => host
                                       .UseConfiguration(config)
                                       //.UseDefaultHostingConfiguration(args)
                                       .UseIISPlatformHandlerUrl()
                                       .UseKestrel());
        }
Ejemplo n.º 2
0
        public static void Main(string[] args)
        {
            var config = new ConfigurationBuilder()
                         .AddCommandLine(args)
                         .AddEnvironmentVariables(prefix: "ASPNETCORE_")
                         .Build();

            StartupBase.Init <Startup>(s => s
                                       .UseConfiguration(config)
                                       .UseEnvironment("Development")
                                       .UseKestrel()
                                       .UseIISIntegration());
        }