I have a windows application that references a DLL which has a WCF client proxy generated from a WSDL.
What I need to do is have the DLL load its dll.config globally so the client proxy can automatically read the endpoint and binding properties (such as in a regular exe.config).
I'm reading in the Config succesfully in the DLL:
ClientSection clientSettings = ConfigurationManager.OpenExeConfiguration(exeConfigPath).GetSection("system.serviceModel/client") as ClientSection;
The above approach just obtains the section so I can manually read out the properties and initialize my WCF proxy client with them. What I want to avoid is exactly that, is there a way to globally load the configuration so all endpoint configuration is loaded into the libraries system.serviceModel instance?