Signal without OWIN

I am participating in an ASP MVC project.

I want to use SignalR in a project, but I do not want to use the OWIN lib.

As I understand it, SignalR is registered in the application using this piece of code:

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

How can I change this to remove the dependency on OWIN?

I would like to use an approach similar to RouteConfig.RegisterRoutes(RouteTable.Routes);

+4
source share
2 answers

First, make sure Get-Package in the package manager console and delete all previous batches of Uninstall-Package [Id] -RemoveDependencies , as this should give you a clean list.

What worked for me without crashes or dependency issues was to use NuGet to install Microsoft.AspNet.SignalR version 1.1.4 into your application and DataAccess. Then add the following to the Global.asax file:

 // Add this Library for MapHubs extension using System.Web.Routing; protected void Application_Start() { // This registers the default hubs route: ~signalr // Simply add the line below WITHIN this function RouteTable.Routes.MapHubs(); } 

[This was used when using Visual Studios 2015 Enterprise on 10/29/2015]

+3
source

If you do not want owin lib you could use SignalR 1.x.

 protected void Application_Start() { RouteTable.Routes.MapHubs(); } 
+2
source

All Articles