Is it possible to create simple REST services with SignalR?

穿精又带淫゛_ 提交于 2019-12-11 07:26:44

问题


I recently discovered SignalR, seems that it can fit into high-load projects with hundreds of concurrent connections.

But as far as I can see, it is only supports full communication type of software (real-time).

So here is the question: is it possible to create REST services with SignalR without client code & persistent connections?

Basically I just need that asynchronous high performance server side part from SignalR & HTTP request handler (if exists).

Regards.


回答1:


Nope that's not SignalR's purpose, use WebApi if you want to make a streaming restful api. Take a look at push content http://blogs.msdn.com/b/henrikn/archive/2012/04/23/using-cookies-with-asp-net-web-api.aspx.



来源:https://stackoverflow.com/questions/11427573/is-it-possible-to-create-simple-rest-services-with-signalr

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