Can I load WCF configuration in xml at runtime?

I want to create a client proxy using the endpoint configuration name. Before creating a proxy server, I want to take the configuration in XML and load it into memory. Cannot specify this configuration in app.config. In addition, it is not possible to create a configuration programmatically (for example, to actually create endpoint objects, bindings, etc.). Given these limitations, I assume I need to interact with the .net configuration manager somehow? Ideally, I could tell the configuration manager to load data from an xml piece with the parent elment being <system.serviceModel>.

Is it possible?

+3
source share
1 answer

, : WCF

+2

Source: https://habr.com/ru/post/1784832/


All Articles