title: Property Injection with Autofac isn't working
body: <p>I've been looking through examples and documentation for Autofac, and can't see to get this working.</p>
  
  <p>We have a helper class, <code>Core.Helpers.Tokens</code> with a property set up like this:</p>
  
  <pre><code>namespace Core.Helpers
  {
      public static class Tokens
      {
          private static IConfigurationManager ConfigurationManager;
  
          public static string GetToken()
          {
              var sessionTokenName = ConfigurationManager.GetAppSetting("SessionTokenName");
              return (string) HttpContext.Current.Session[sessionTokenName];
          }
      }
  }
  </code></pre>
  
  <p>The configuration is designed like this:</p>
  
  <pre><code>namespace Core.Config
  {
      public interface IConfigurationManager
      {
          //...
      }
  
      public class WebConfigConfigurationManager : IConfigurationManager
      {
          //...
      }
  }
  </code></pre>
  
  <p>In our MVC Web app (which references and uses <code>Core.Helpers</code>, <code>Startup.cs</code> I'm trying to register <code>IConfigurationManager</code> for property injection.</p>
  
  <pre><code>public partial class Startup
  {
      public void Configuration(IAppBuilder app)
      {
          var builder = new ContainerBuilder();
  
          // REGISTER CONTROLLERS SO DEPENDENCIES ARE CONSTRUCTOR INJECTED
          builder.RegisterControllers(typeof(MvcApplication).Assembly);
          builder.RegisterModule&lt;AutofacWebTypesModule&gt;();
          builder.RegisterFilterProvider();
          builder.RegisterType&lt;WebConfigConfigurationManager&gt;().As&lt;IConfigurationManager&gt;().PropertiesAutowired();
  
          RegisterTypes(builder);
  
          // BUILD THE CONTAINER
          var container = builder.Build();
          var webConfig = container.Resolve&lt;IConfigurationManager&gt;();
  
          // REPLACE THE MVC DEPENDENCY RESOLVER WITH AUTOFAC
          DependencyResolver.SetResolver(new AutofacDependencyResolver(container));
  
          // REGISTER WITH OWIN
          app.UseAutofacMiddleware(container);
          app.UseAutofacMvc();
      }
  </code></pre>
  
  <p>When the web code calls GetToken, <code>ConfigurationManager</code> is null. What am I missing?</p>