是否有可能与SignalR创建简单的REST服务? [英] Is it possible to create simple REST services with SignalR?

查看:254
本文介绍了是否有可能与SignalR创建简单的REST服务?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

最近我发现SignalR,似乎能适应高负荷的项目有数百个并发连接。

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).

因此​​,这里的问题是:是否有可能与SignalR 创建REST服务,而客户端code和;持续连接?

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

基本上,我只需要一个异步高性能服务器端部分来自SignalR和放大器; HTTP请求处理程序(如果存在的话)。

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

问候。

推荐答案

都能跟得上,这不是SignalR的目的,使用的WebAPI如果你想使一个流REST的API。看看推送内容的http://blogs.msdn.com/b/henrikn/archive/2012/04/23/using-cookies-with-asp-net-web-api.aspx.

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.

这篇关于是否有可能与SignalR创建简单的REST服务?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆