我可以在执行期间加载 xml 中的 WCF 配置吗?
我想使用端点配置名称创建客户端代理。在创建代理之前,我想获取 XML 中的配置并将其加载到内存中。它不是在 app.config 中指定此配置的选项。此外,它不是以编程方式创建配置的选项(例如实际实例化端点、绑定等对象)。考虑到这些限制,我假设我必须以某种方式与 .net 的配置管理器进行交互?理想情况下,我可以告诉配置管理器从父元素为
这有可能吗?
I want to create a client proxy using an endpoint configuration name. Prior to proxy creation, I want to take the configuration in XML and load it into memory. Its not an option to specify this configuration in app.config. Also, its not an option to create the configuration programmatically (like actually instantiating the endpoint, binding, etc. objects). Given these constraints, I'm assuming that I have to somehow interact with .net's configuration manager? Ideally, I could tell the configuration manager to load data from a chunk of xml with the parent elment being <system.serviceModel>.
Is this at all possible?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论