0

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

谢谢!

4

1 回答 1

0

如果我正确理解了您的问题,您想添加多个具有不同绑定的端点。

例如:

<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>
于 2012-08-18T20:20:17.413 回答