title: Castle windsor: Register generics with more than one items
body: <p>I have a generic interface defined like this -</p>
  
  <pre><code>public interface IGenericRepository&lt;TEntity, TDbContextType&gt;
      where TEntity : class
      where TDbContextType : IDbContextType 
  </code></pre>
  
  <p>This interface is implemented by a class like this - </p>
  
  <pre><code> public class GenericRepository&lt;TEntity,TDbContextType&gt; 
      : IGenericRepository&lt;TEntity, TDbContextType&gt; 
      where TEntity : class 
      where TDbContextType: IDbContextType
  </code></pre>
  
  <p>I tried the following for registering this interface and implementation with castle -</p>
  
  <pre><code>   _container.Register(Component.For(typeof (IGenericRepository&lt;&gt;))
         .ImplementedBy(typeof (GenericRepository&lt;&gt;))
         .LifestylePerWcfOperation());
  </code></pre>
  
  <p>But it fails at compile time Saying "incorrect number of paramters".</p>