예제 #1
0
        public void Configure(IApplicationBuilder app, ContextInitializer contextInitializer)
        {
            if (Environment.IsDevelopment())
            {
                app.UseDeveloperExceptionPage();
                app.UseDatabaseErrorPage();
            }

            app.UseStaticFiles();

            app.UseRouting();

            app.UseCookiePolicy();

            app.UseIdentityServer();
            app.UseAuthorization();

            contextInitializer.SeedData();
            app.UseEndpoints(endpoints =>
            {
                endpoints.MapDefaultControllerRoute();
            });
        }