Hi Ryan,

If you want to make this configurable, put it in web.config / app.config. If
you want to decide at runtime which implementation to use (from the ones you
registered), you can use a IHandlerSelector.
Avoid giving your classes direct access to the container.

--
Mauricio


On Fri, Jul 22, 2011 at 3:25 PM, Ryan <[email protected]> wrote:

> I'm having some difficulty having multiple implementations of the same
> service.  This was a discussion awile back and it was suggested to use
> service overrides.  However, this allows you to change the
> implementation at compile time, I need all 3 implementations available
> at run-time as different classes use a different implementation.  Is
> this possible?  I can resolve directly out of the container using
> container.resolve(Of IService)("Implementation1").  Can I give my
> classes access to the container somehow?  I'm currently using
> constructor injection and it does not appear possible this way.
> 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.
>
>

-- 
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