title: How do I access the autofac container in ASP.NET MVC3 controller?
body: <p>I would like to resolve a dependency using a named parameter in an MVC controller. If I can access the Autofac container I should be able to do it like so:</p>
  
  <pre><code>var service = Container.Resolve&lt;IService&gt;(
      new NamedParameter("fileExtension", dupExt)
  );
  </code></pre>
  
  <p>I can't find out how to access the AutoFac container. Is there a global reference to the container that I can use or is there another way to use named parameters?</p>