简体   繁体   English

ADO.NET 数据服务可以使用命名管道作为传输吗

[英]Can ADO.NET Data Services use named pipes as a transport

I am well aware that the Rest based approach is targeting HTTP.我很清楚基于 Rest 的方法是针对 HTTP 的。 I would love to use the REST APIs and other goodness between processes on the same computer.我很想在同一台计算机上的进程之间使用 REST API 和其他优点。 Since ADO.NET data services is built on top of WCF it would seem reasonable to assume that the transport in configurable to work with any of the WCF supported transports.由于 ADO.NET 数据服务构建在 WCF 之上,因此假设传输可配置为与任何 WCF 支持的传输一起使用似乎是合理的。 Anyone know if there is a way to configure it to send traffic via namedpipes?任何人都知道是否有办法将其配置为通过命名管道发送流量?

Actually the REST architectural style does not in any way require HTTP.实际上,REST 架构风格在任何情况下都不需要 HTTP。 That just happens to be the most common implementation protocol.这恰好是最常见的实现协议。 However, ADO.Net data services uses System.ServiceModel.Web which IS tied to http.但是,ADO.Net 数据服务使用绑定到 http 的 System.ServiceModel.Web。 You can certainly do REST over named pipes, you will just have to find a different protocol.您当然可以通过命名管道执行 REST,您只需要找到不同的协议。

In .NET 3.5 there is built-in named pipe binding for WCF.在 .NET 3.5 中,WCF 有内置的命名管道绑定。 See the MSDN for details.有关详细信息,请参阅MSDN

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM