title: ServiceStack - How do I use existing IOC?
body: <p>We have an existing MVC3 project and use Autofac for DI.</p>
  
  <p>To provide RESTful services, we are intending to use ServiceStack. How do we make ServiceStack use existing Bootstrapper.cs that initialises autofac?</p>
  
  <p>Our existing Bootrapper.cs:</p>
  
  <pre><code> public static class Bootstrapper
      {
          public static ContainerBuilder builder;
          public static void Initialise()
          {
              builder = new ContainerBuilder();
              builder.RegisterControllers(typeof(MvcApplication).Assembly);
              var container = builder.Build();
              DependencyResolver.SetResolver(new AutofacDependencyResolver(container));
          }
      }
  </code></pre>