title: Autofac and IDisposable interface
body: <p>Assuming that I have the following interface and class:</p>
  
  <pre><code>public interface IFooRepo : IDisposable { 
  
      //...
  }
  
  public FooRepo : IFooRepo { 
  
      //Methods here
  
      //Properly implement the IDisposbale.Dispose() here
  }
  </code></pre>
  
  <p>I use Autofac as IoC container in my application and if I register this as below, can I be sure that it will disposed properly?</p>
  
  <pre><code>private static IContainer RegisterServices(ContainerBuilder builder) { 
  
      builder.RegisterType&lt;FooService&gt;().As&lt;IFooService&gt;();
  
      return
          builder.Build();
  }
  </code></pre>
  
  <p>Or should I take further steps depending on the application type I am using. (In this case, I using ASP.NET MVC but I am considering using autofac in a WCF Web API project and a class library)</p>