I don't see anything in the API for that.

And this begs the question, "Why do you want to know that?"  A
loosely-coupled design wouldn't care of the type -- only the
interface.  What are you trying to accomplish?

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


On Thu, Aug 23, 2012 at 7:54 AM, mynkow <[email protected]> wrote:
> Hi,
>
> I have an interface ISomeService and two concrete implementations SSA and
> SSB. Depending on a configuration container.Resolve<ISomeService>() will
> return SSA or SSB. Is it possible to get the type which will be resolved
> without resolving and creating an instance. For example something like this:
> var theServiceType =
> container.TheServiceResolvedWillBeOfType<ISomeService>()
>
> Best regards
> mynkow
>
> --
> You received this message because you are subscribed to the Google Groups
> "Castle Project Users" group.
> To view this discussion on the web visit
> https://groups.google.com/d/msg/castle-project-users/-/7o7HyxfDInQJ.
> 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