I did something like this

<component id="MyComponent" service="MyNamespace.IRepository`1[[MyClass, 
__Code]], __Code" type="MyClassRepository, __Code"  />



Everytime IRepository<MyClass> is used, it uses the class 
MyClassRepository. __Code is whatever the assembly is for you class. In my 
case it was in ASP.Net App_Code folder.

On Saturday, October 3, 2015 at 12:08:01 AM UTC-5, Scott_M wrote:
>
> Is there a good way to resolve generic services using Windsor?  For 
> example, I would like to resolve all services that implement IFoo<T> where 
> T  : class, Bar.
>
> thanks
>
> scott
>
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Castle Project Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/castle-project-users.
For more options, visit https://groups.google.com/d/optout.

Reply via email to