对于使用 运行的基于 REST 的服务,WebHttpBinding
我可以在使用 的同一台机器上添加服务间通信功能NetNamedPipeBinding
,以便更快吗?
谢谢!
如果我正确理解了您的问题,您想添加多个具有不同绑定的端点。
例如:
<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>