class Startup { public void Configuration(IAppBuilder app) { app.Use(typeof(CustomMiddleWare)); app.MapSignalR(); } }