I think service overrides would do what you want.  See:

http://docs.castleproject.org/Windsor.Registering-components-one-by-one.ashx#Supplying_the_component_for_a_dependency_to_use_Service_override_9

---
Patrick Steele
http://weblogs.asp.net/psteele



On Thu, Mar 22, 2012 at 6:21 PM, Merijn de Jonge
<[email protected]> wrote:
> My program uses an interface IA that is implemented by a class A. This
> class has a dependency on an interface IB which is implemented by a
> class B. Class B has a dependency on interface IC and for this
> interface there are multiple implementations (say C1 and C2). My
> question is: is it possible to register and resolve two bindings for
> interface IA, the first resolves into IA-A-IB-B-IC-C1 and the second
> in IA-A-TB-B-IC-C2? So, I get two implementations for IA, which only
> differ in the implementation of some indirect dependency.
>
> Thanks in advance.
> Merijn
>
>
> --
> You received this message because you are subscribed to the Google Groups 
> "Castle Project Users" group.
> To post to this group, send email to [email protected].
> To unsubscribe from this group, send email to 
> [email protected].
> For more options, visit this group at 
> http://groups.google.com/group/castle-project-users?hl=en.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Castle Project Users" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/castle-project-users?hl=en.

Reply via email to