title: How to use Autofac in a class library project?
body: <p>I have the following implementation:</p>
  
  <pre><code>private INewsRepository newsRepository;
  
  public NewsService(INewsRepository newsRepository)
  {
       this.newsRepository = newsRepository;
  }
  </code></pre>
  
  <p>This service is in a separate project than that of my web project.  Where and how would I specify the dependency injection?  Would I still need to put it in my global.asax file?  What if this service is used my other apps as well?</p>