简体   繁体   English

Silverlight MEF WCF参考

[英]Silverlight MEF WCF Reference

I am creating a Host SL app that will serve up several "Plugins" Each of these plugins can reference their own WCF service. 我正在创建一个将提供多个“插件”的Host SL应用程序,每个这些插件都可以引用自己的WCF服务。 When i import these into the Host app using MEF it says it cant find the endpoint. 当我使用MEF将这些导入主机应用程序时,它说找不到端点。

What is the best way to handle these endpoints. 处理这些端点的最佳方法是什么。 I am trying not to have to handcode each 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"))

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM