AddingFiltersWithoutSupertype.Controllers.AccountController.OnActionExecuting C# (CSharp) Метод

OnActionExecuting() защищенный Метод

protected OnActionExecuting ( ActionExecutingContext filterContext ) : void
filterContext ActionExecutingContext
Результат void
        protected override void OnActionExecuting(ActionExecutingContext filterContext)
        {
            if (filterContext.HttpContext.User.Identity is WindowsIdentity)
            {
                throw new InvalidOperationException("Windows authentication is not supported.");
            }
        }