예제 #1
0
        public static void Main(string[] args)
        {
            var webHost = ModuleWebHost.CreateModuleBuilder(args)
                          .UseStartup <Startup>()
                          .Build();

            webHost.Run();
        }
예제 #2
0
        public static void Main(string[] args)
        {
            var webHost = ModuleWebHost.CreateModuleBuilder(args)
                          .ConfigureLogging((hostingContext, logging) =>
            {
                logging.SetMinimumLevel(LogLevel.Information);
                logging.AddConfiguration(hostingContext.Configuration.GetSection("Logging"));
                logging.AddConsole();
                logging.AddDebug();
            })
                          .UseStartup <Startup>()
                          .Build();

            webHost.Run();
        }