How do I Resolve dependancies that rely on transient context data using castle windsor?

Posted by Dan Ryan on Stack Overflow See other posts from Stack Overflow or by Dan Ryan
Published on 2010-03-30T16:00:31Z Indexed on 2010/03/30 16:03 UTC
Read the original article Hit count: 408

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?

© Stack Overflow or respective owner

Related posts about castle-windsor

Related posts about ioc-container