IHandlerSelector
On Fri, May 8, 2009 at 7: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
-~----------~----~----~----~------~----~------~--~---