Why doesn't my ChannelFactory see my endpoint configuration?

后端 未结 5 1314
旧时难觅i
旧时难觅i 2020-12-24 00:42

I\'ve been following Miguel Castro\'s excellent article on WCF here and it\'s all working nicely, except that I have the following code

public AdminClient()
         


        
5条回答
  •  鱼传尺愫
    2020-12-24 01:22

    You can get away without specifying endpoint name on service side. For client side, you need to specify the name, because you may be connecting to multiple services that have the same contract. How would WCF know then which one you want?

提交回复
热议问题