title: How to inject a property into a class that I don't control the creation of
body: <p>How do I inject the <em>IServiceManager</em> property into this class using autofac? This is a custom resource provider factory class that gets called when you make a call to <code>HttpContext.GetGlobalResourceObject("", "MyResource")</code> to get a resource string.</p>
  
  <pre><code>public class SqlResourceProviderFactory : ResourceProviderFactory
  {
      // needs autofac property injection
      public IServiceManager ServiceManager { get; set; }
  
      public override IResourceProvider CreateGlobalResourceProvider(string classKey)
      {
          ...
      }
  
      public override IResourceProvider CreateLocalResourceProvider(string virtualPath)
      {
          ...
      }
  
      public static string GetAppRelativePath(string logicalPath)
      {
          ...
      }
  }
  </code></pre>