开发者

Can I load a WCF configuration in xml during execution?

开发者 https://www.devze.com 2023-02-03 13:07 出处:网络
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 configur

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 开发者_如何学Cin 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?

0

精彩评论

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