title: System.InvalidOperationException: Unable to resolve service for type 'Microsoft.AspNetCore.Mvc.Filters.IActionFilter' while attempting to activate
body: <p>Do I have to write</p>
  <pre><code>services.AddMvc();
  </code></pre>
  <p>at startup.cs.
  I dont want use AddMvc. Is there another ServiceCollection method for DI of IActionFilter?</p>
  <p>I use IActionFilter type object at attribute class like this;</p>
  <pre><code>public class AutoLogAttribute : IActionFilter
      {
          private readonly ILogService _logService;
          private IActionFilter _actionFilterImplementation;
          private readonly IHttpContextAccessor _httpContextAccessor;
          public AutoLogAttribute(ILogService logService, 
                 IHttpContextAccessor httpContextAccessor,
                 IActionFilter actionFilterImplementation)
          {
              _logService = logService;
              _httpContextAccessor = httpContextAccessor;
              _actionFilterImplementation = actionFilterImplementation;
          }
          
          public void OnActionExecuting(ActionExecutingContext context)
          {
              _actionFilterImplementation.OnActionExecuting(context);
          }
  </code></pre>