title: Problem with class having as base class ActionFilterAttribute
body: <p>The following class creates a custom action filter named [SessionTimeout]:</p>
  
  <pre><code>public class SessionTimeoutAttribute : ActionFilterAttribute
  {
      private readonly IHttpContextAccessor _httpContextAccessor;
      private readonly ISession _session;
      public SessionTimeoutAttribute(IHttpContextAccessor httpContextAccessor)
      {
          _httpContextAccessor = httpContextAccessor;
          _session = _httpContextAccessor.HttpContext.Session;
      }
  
      public override void OnActionExecuting(ActionExecutingContext filterContext)
      {
          HttpContext ctx = _httpContextAccessor.HttpContext;
          if (!ctx.User.Identity.IsAuthenticated)
          {
              filterContext.Result = new RedirectResult("~/Account/Login");
              return;
          }
          base.OnActionExecuting(filterContext);
      }
  }
  </code></pre>
  
  <p>As the implementation is now, when I go to decorate a class with [SessionTimeout] it also asks me the parameter for the constructor.</p>
  
  <p>I would like to avoid this if possible.</p>
  
  <p>Can someone helè me?
  Thanks.</p>