我可以同时使用WebHttpBinding和NetNamedPipeBinding吗?

时间:2012-08-14 17:49:59

标签: .net wcf

对于使用WebHttpBinding运行的基于REST的服务,是否可以在NetNamedPipeBinding的同一台计算机上添加服务间通信功能,以便更快?

谢谢!

1 个答案:

答案 0 :(得分:0)

如果我理解你的问题,你想添加多个具有不同Bindings的端点。

例如:

<service name = "MyService">
<endpoint
address = "http://localhost:8000/MyService"
binding = "wsHttpBinding"
contract = "IMyContract"
/>
<endpoint
address = "net.tcp://localhost:8001/MyService"
binding = "netTcpBinding"
contract = "IMyContract"
/>
<endpoint
address = "net.tcp://localhost:8002/MyService"
binding = "netTcpBinding"
contract = "IMyOtherContract"
/>
</service>