I have a WCF service application that uses a component called EnvironmentConfiguration that holds configuration information for my application. I am converting this service so that it can be used by different applications that have different configuration requirements.
I want to identify the configuration to use by allowing an additional parameter to be passed to the service call i.e.
public void DoSomething(string originalParameter, string callingApplication)
What is the recommended way to alter the behaviour of the EnvironmentConfiguration class based on the transient data (callingApplication) without having to pass the callingApplication variable to all the component methods that need configuration information?