// 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, TenantRepository tenantRepository, UserRepository userRepository) { loggerFactory.AddConsole(); loggerFactory.AddDebug(); var logger = loggerFactory.CreateLogger <Startup>(); logger.LogInformation("Configuring the application"); if (env.IsDevelopment()) { app.UseDeveloperExceptionPage(); } var tenant = tenantRepository.AddInitialTenant(SeedData.GetTenants().First()); userRepository.AddInitialUsers(SeedData.GetUsers(), tenant); app.UseIdentityServer(); app.UseStaticFiles(); app.UseMvcWithDefaultRoute(); }