Hello,

Looking for IoC in the Web I Found this 
http://msdn.microsoft.com/en-us/library/aa973811(loband).aspx

In that link I see something like this (for generics)

<configuration>
  <components>
    <component id="orders-repository"
               service="NShop.IRepository`1[[NShop.Order, NShop]],
NShop"
               type="NShop.OrderRepository, NShop"/>
    <component id="generic-repository" service="NShop.IRepository`1,
NShop"
               type="NShop.NHibernateRepository`1, NShop"/>
    <component id="orders-dispatcher" type="NShop.OrdersDispatcher,
NShop"/>
  </components>
</configuration>


The reason for this NShop.IRepository`1[[NShop.Order, NShop]], NShop
is beacuse it is the representation de
generics in the CLR (according to ayende)

So NShop.IRepository`1[[NShop.Order, NShop]] = IRepository<T>

It looks ugly to me (why not make the configuration to work with the
IRepository<T> style?) ,
but, this is not the case..
The point is that when I run the code, an exception is thrown
indicating an error in configuration file for that strange line
service="NShop.IRepository`1[[NShop.Order, NShop]], NShop"

The lesson exposed in that link is old (2006)
My question is... How do I manage Generics using the new Windsor (2009
assemblies)?

Slts





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