title: Circular component dependency detected:
body: <p>I am using <em>Autofac</em> to DI and getting Circular component dependency detected  error</p>
  
  <p>My implementation looks like</p>
  
  <pre><code>public interface IProduct { }
  
  public class Product : IProduct { }
  
  public interface ISupplier { }
  
  public class Supplier : ISupplier { }
  
  public interface IProductSupplier { }
  
  public class ProductSupplier : IProductSupplier
  {
      private ProductSupplier(ISupplier supplier, IProduct product) { }
  }
  
  public interface IGoodsReceive { }
  
  public class GoodsReceive : IGoodsReceive
  {
      private GoodsReceive(IProductSupplier productSupplier) { }
  }
  </code></pre>
  
  <p>while resolving ProductSupplier , it gives Circular component dependency detected: GoodsReceive -> productSupplier -> productSupplier</p>