Ejemplo n.º 1
0
        // This method gets called by the runtime. Use this method to configure the HTTP request pipeline.
        public void Configure(IApplicationBuilder app, IHostingEnvironment env, ILoggerFactory loggerFactory, IConfigurationRoot appSetting, ApplicationDbContextSeeder seeder)
        {
            loggerFactory.AddConsole(appSetting.GetSection("Logging"));
            loggerFactory.AddDebug();

            app.UseIISPlatformHandler();

            app.UseDefaultFiles();

            app.UseStaticFiles();

            //TODO AUTH
            //app.UseIdentity();

            app.UseMvc();

            seeder.EnsureSeedData().Wait();
        }