开发者

Can I load a WCF configuration in xml during execution?

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜