// This method gets called by the runtime. Use this method to configure the HTTP request pipeline. public void Configure(IApplicationBuilder app, IHostingEnvironment env) { //if (env.IsDevelopment()) //{ app.UseDeveloperExceptionPage(); //} BusinessLogicModule.ConfigureMiddleware(app); CommonModule.ConfigureMiddleware(app); CoreModule.ConfigureMiddleware(app); DataAccessModule.ConfigureMiddleware(app); // if (env.IsDevelopment()) // { app.UseCors("AllowAll"); // } app.UseAuthentication(); app.UseMvc(); if (Configuration.GetValue <bool>("UseLocalSignalR")) { app.UseSignalR(options => { options.MapHub <WorkspaceHub>("/workspaceHub"); options.MapHub <ChatHub>("/chatHub"); options.MapHub <NavigationHub>("/navigationHub"); }); } else { app.UseAzureSignalR(options => { options.MapHub <WorkspaceHub>("/workspaceHub"); options.MapHub <ChatHub>("/chatHub"); options.MapHub <NavigationHub>("/navigationHub"); }); } }