开发者

Silverlight MEF WCF Reference

开发者 https://www.devze.com 2023-03-02 23:01 出处:网络
I am creating a Host SL app that will serve up several \"Plugins\" Each of these plugins can reference their own WCF service. When i import these into the Host app using MEF it says it cant find the e

I am creating a Host SL app that will serve up several "Plugins" Each of these plugins can reference their own WCF service. When i import these into the Host app using MEF it says it cant find the endpoint.

What is the best way to handle these endpoints. I am trying not to have to handcode each 开发者_Python百科endpoint everytime we need to release a new plugin


Using these two line below allowed me to use that service reference without the config file exporting

  Private binding As New BasicHttpBinding(BasicHttpSecurityMode.TransportCredentialOnly)
Private WithEvents _Misc As Service_Misc.Misc_CallsClient = New Misc_CallsClient(binding, New EndpointAddress("http://localhost:61928/Misc_Calls.svc"))
0

精彩评论

暂无评论...
验证码 换一张
取 消