title: Blazor equivalent to OnActionExecuting?
body: <p>In my MVC controllers, I would overload the <code>OnActionExecuting</code> method to check for security rights accessibility. Is there an equivalent to this behavior in Blazor serverside when routing to razor pages without controllers?</p>
  
  <pre><code>public override void OnActionExecuting(ActionExecutingContext context)
  {
      if (!context.IsAuthorized(out string message))
          context.Result = StatusCode((int)HttpStatusCode.Unauthorized, 
  message);
      base.OnActionExecuting(context);
  }
  </code></pre>