title: How can I resolve circular dependencies in Funq IoC?
body: <p>I have two classes which I need to reference each other.</p>
  
  <pre><code>class Foo
  {
      public Foo(IBar bar) {}
  }
  
  class Bar
  {
      public Bar(IFoo foo) {}
  }
  </code></pre>
  
  <p>When I do:</p>
  
  <pre><code>container.RegisterAutoWiredAs&lt;Foo, IFoo&gt;();
  container.RegisterAutoWiredAs&lt;Bar, IBar&gt;();
  </code></pre>
  
  <p>and when I try to resolve either interface I get a circular dependency graph which results in an infinite loop. Is there an easy way to solve this in Funq or do you know of a workaround?</p>