title: Possible to inject into IAsyncActionFilter from Simple Injector in ASP.NET Core project?
body: <p>Consider a simple action filter in an ASP.NET Core MVC project that takes a dependency: </p>
  
  <pre class="lang-cs prettyprint-override"><code>public class TestActionFilter : IAsyncActionFilter {
      private readonly IMyDependency _dep;
  
      public class TestActionFilter(IMyDependency dep)
      {
          _dep = dep;
      }
  
      public async Task OnActionExecutionAsync(ActionExecutingContext context,
                                               ActionExecutionDelegate next)
      {
          // do things with _dep...
          await next();
      }
  }
  </code></pre>
  
  <p>I already have <code>IMyDependency</code> registered with Simple Injector and working elsewhere.  I would like for Simple Injector to handle the action filter as well.</p>
  
  <p>If I add an <code>IServiceCollection</code> registration for the same type, it does get injected into the action filter.  I do not want two bindings though and I'm trying to avoid the framework container and just stick with Simple Injector.</p>
  
  <p>Is there some trick to get Simple Injector to handle my action filter?  I remember there used to be some sort of "filter provider" concepts in older Simple Injector incarnations that allowed this.</p>