Hi All,
Having a bit of a headache with Unity XML configuration and generics. I have these files:
public interface IRepository<T> {}
public class OrderRepository : IRepository { }
public class DispatchOrderProcess
{
     public DispatchOrderProcess(IRepository<Order> repository) { }
}
I would like to inject the Order Repository into the DispatchOrderProcess class using Unity XML configuration. So far I have something like so:
   <type name="OrderRespository" type="Company.Project.Core.Interfaces.IRepository`1, Company.Project.Core" mapTo="Company.Project.Core.Repositories.OrderRepository, Company.Project.Core" />
   <type name="DispatchOrderProccess" type="Company.Project.Core.Interfaces.ISendAlertsProcess, Company.Project.Core" mapTo="Company.Project.Core.Processes.SendAlertsProcess, Company.Project.Core">
    <typeConfig>
     <constructor>
      <param name="orderRepository" parameterType="Company.Project.Core.Interfaces.IRepository`1, Company.Project.Core">
       <dependency name="OrderRespository"/>
      </param>
     </constructor>
    </typeConfig>
   </type>
  </types>
 </container>
</containers>