title: Asp.net Core dependency injection in filters without [ServiceFilter] or [TypeFilter]
body: <p>I need to inject some services with dependency injection to action filters. I'm familiar with the <code>[ServiceFilter]</code> and <code>[TypeFilter]</code> approach, but it's kind of ugly, messy, and unclear.</p>
  
  <p>Is there a way I can set a filter in the normal way? without wrapping the filter I'm using with <code>[ServiceFilter]</code> or <code>[TypeFilter]</code>?</p>
  
  <p>For example what I want:</p>
  
  <pre><code>[SomeFilterWithDI]
  [AnotherFilterWithDI("some value")]
  public IActionResult Index()
  {
      return View("Index");
  }
  </code></pre>
  
  <p>Instead of:</p>
  
  <pre><code>[ServiceFilter(typeof(SomeFilterWithDI))]
  [TypeFilter(typeof(AnotherFilterWithDI), Arguments = new string[] { "some value" })]
  public IActionResult Index()
  {
      return View("Index");
  }
  </code></pre>
  
  <p>It looks way different, this approach doesn't seem right to me.</p>