Regarding hosting SignalR in console apps

♀尐吖头ヾ 提交于 2019-12-06 02:45:31

The Startup class shown here is where you configure SignalR; in this case it is using a basic approach that is just going to find all the hubs (the Hub subclasses in the calling assembly) and throw them into the mix by-name - but more subtle configurations are possible. The WebApplication.Start<Startup>(url) is invoking all that configuration code, along with the plumbing to get a listener, etc to do some actual work. Ultimately it is the Hub that has the interesting code here, i.e. where your code goes.

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!