What happens when a WCF client specifies multiple endpoints for the same contract?
问题 Will it consume from all of them? Will it throw an exception? 回答1: You can have multiple endpoints for the same contract and different addresses in your clieint config, no problem. They need to be separated by a unique name= attribute on the <endpoint> tag. <client> <endpoint name="tcpEndpoint" address="net.tcp://server:8888/SomeService" binding="netTcpBinding" contract="IYourService" /> <endpoint name="httpEndpoint" address="http://server:8777/SomeService" binding="basicHttpBinding" contract