Hi Germán,

I've looked at your link, my question is how can I apply this
configuration for many dependent components? for example, we have both
fake and real implementation of an external service and all other
components depend on them.

Thanks,

On May 9, 2:20 am, Germán Schuager <[email protected]> wrote:
> Take a look at the Service Override section 
> here:http://castleproject.org/container/documentation/trunk/usersguide/com...
>
> On Fri, May 8, 2009 at 2:41 PM, scott_m <[email protected]> wrote:
>
> > I have a scenario where there are multiple classes using the same
> > interface in their constructors for dependency injection:,
>
> > //main consumer classes where ISecurityTokenService dependency is
> > injected by windsor
> > public class AnonymousController()
> > {
> >        public AnonymousController(ISecurityTokenService)
> >        {
> >        }
> > }
>
> > public class ActiveDirectoryController()
> > {
> >        public ActiveDirectoryController(ISecurityTokenService)
> >        {
> >        }
> > }
>
> > //dependency classes
> > public class ActiveDirectorySTS : ISecurityTokenService
> > {
> > }
>
> > public class AnonymouSTS : ISecurityTokenService
> > {
> > }
>
> > Using Windsor/config files, is there a way to configure it so that the
> > AnonymousController is injected with the AnonymouSTS implementation
> > and the ActiveDirectoryController
> > is injected with the the ActiveDirectorySTS implementation?
>
> > thanks
--~--~---------~--~----~------------~-------~--~----~
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