学习signalr时程序出错,简单的错误,提示MapConnection方法过时
protected void Application_Start(object sender, EventArgs e)
{
RouteTable.Routes.MapConnection<ChatConnection>("chat","chat/ {*operation}");
}
错误1“System.Web.Routing.SignalRRouteExtensions.MapConnection<T>(System.Web.Routing.RouteCollection, string, string)”已过时:“Use IAppBuilder.MapSignalR<TConnection> in an Owin Startup class. See http://go.microsoft.com/fwlink/?LinkId=320578 for more details.”
提示这个错误
我vs是2013的
.net signalr mapconnection 已过时
[解决办法]
VS2013 直接用 SignalR 2.0 版本吧
入门教程
[解决办法]