.NET Signalr MapConnection is Obsolete?

前端 未结 3 1823
一向
一向 2021-02-14 01:51

I am new to .Net and SignalR. I am looking at some code written by a former coworker and he added this line to the Route Config which is now throwing errors saying its obsolete

3条回答
  •  暗喜
    暗喜 (楼主)
    2021-02-14 02:42

    To enable SignalR in your application, create a class called Startup with the following:

    using Owin;

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

提交回复
热议问题