title: C# class library project dependency injection bootstrap
body: <p>I recently used Dependency Injection pattern with Autofac as the IoC Container.</p>
  
  <p>Normally, I would use it inside core application (Winform, WCF, WPF etc).</p>
  
  <p>Currently I'm learning to create a class library project as a framework for my peer developers, and I tend to stick with the DI pattern since it allows me to unit test as I go.</p>
  
  <p>How do I configure the IoC Container in a class library project without an entry point?</p>
  
  <p>Should I just make something like : </p>
  
  <pre><code>public static void ConfigureLibrary() {
       //.. Do bootstraping here
  }
  </code></pre>
  
  <p>and let core application to call it when the core app start?</p>
  
  <p>How did libraries like the Patterns &amp; Practices Enterprise Library or Spring.Net configured?</p>