title: AutoFac Injection into attribute
body: <p>So I have a need for injecting a number of different services into an authorization attribute I'm using. For simplicity I will leave this to show the configuration manager.</p>
  
  <pre><code>public class FeatureAuthorizeAttribute : AuthorizeAttribute
  {
      public IConfigurationManager ConfigurationManager;
  
      private readonly string _feature;
      public FeatureAuthorizeAttribute(string feature)
      {
          _feature = feature;
  
          var test  = ConfigurationManager.GetCdnPath();
      }
  }
  </code></pre>
  
  <p>Which would be used as follows</p>
  
  <pre><code>[FeatureAuthorize("Admin")]
  </code></pre>
  
  <p>I have tried to use constructor injection </p>
  
  <pre><code>public FeatureAuthorizeAttribute(string feature, IConfigurationManager configurationManager)
  {
     ConfigurationManager = configurationManager;
     _feature = feature
  }
  </code></pre>
  
  <p>However this just causes an error when I attempt </p>
  
  <pre><code>[FeatureAuthorize("Admin", IConfigurationManager)]
  </code></pre>
  
  <p>Which seems like the wrong way to go about it in the first place.  I'm assuming that I need to register my custom authorization attribute with the container to get it to start picking up </p>