title: Integrating Autofac with Microsoft Azure Mobile Services
body: <p>I've created a mobile table controller:</p>
  
  <pre><code>[MobileAppController]
  [Authorize]
  public class EventOrganiserMembershipDtoController : TableController&lt;EventOrganiserMembershipDto&gt;
  {
      private readonly IModelContext _modelContext;
  
      public EventOrganiserMembershipDtoController(IModelContext modelContext)
      {
          _modelContext = modelContext;
      }
  
      protected override void Initialize(HttpControllerContext controllerContext)
      {
          base.Initialize(controllerContext);
          DomainManager = new EventOrganiserMembershipDomainManager((DbContext)_modelContext, controllerContext.Request);
      }
  }
  </code></pre>
  
  <p>But it doesn't accept dependency injection, despite the fact that I've set it up in my project. </p>
  
  <p>According to all the searching I've done, to achieve this task, which should be trivially easy, I need the line <code>ServiceConfig.Initialize(new ConfigBuilder(options))</code>. But I have no idea where this mythical <code>ServiceConfig</code> class is supposed to live. Is it obsolete? Is there a newer way of doing this?</p>