public void Configuration(IAppBuilder app) { var unityHubActivator = new MvcHubActivator(); GlobalHost.DependencyResolver.Register( typeof(IHubActivator), () => unityHubActivator); app.MapSignalR(); }
public void Configuration(IAppBuilder app) { // For more information on how to configure your application, visit https://go.microsoft.com/fwlink/?LinkID=316888 var autofacHubActivator = new MvcHubActivator(); GlobalHost.DependencyResolver.Register( typeof(IHubActivator), () => autofacHubActivator); app.MapSignalR(); }
public void Configuration(IAppBuilder app) { app.UseCookieAuthentication(new CookieAuthenticationOptions { AuthenticationType = DefaultAuthenticationTypes.ApplicationCookie, LoginPath = new PathString("/accounts/login"), }); var unityHubActivator = new MvcHubActivator(); GlobalHost.DependencyResolver.Register( typeof(IHubActivator), () => unityHubActivator); app.MapSignalR(); }