对于使用WebHttpBinding
运行的基于REST的服务,是否可以在NetNamedPipeBinding
的同一台计算机上添加服务间通信功能,以便更快?
谢谢!
答案 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>