Why doesn't my ChannelFactory see my endpoint configuration?

后端 未结 5 1323
旧时难觅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:13

    Use "*" to use the first qualifying endpoint.

    public AdminClient()
    {
        ChannelFactory factory  
             = new ChannelFactory("*");
    
        productAdminChannel = factory.CreateChannel();
    }
    

    MSDN Example

提交回复
热议问题