public override void OnActionExecuting(HttpActionContext actionContext) { if (_ra.TestMatchExpressionValue == null) { string actionName = _ActionName ?? actionContext.ActionDescriptor.ActionName; string cName = actionContext.ActionDescriptor.ControllerDescriptor.ControllerName; this.SetMatchExpression(Auth2.Expression(cName, actionName)); } base.OnActionExecuting(actionContext); }
/// <summary> /// Customize the request setup /// </summary> /// <param name="method"></param> /// <param name="controlName"></param> /// <param name="actioname"></param> public AuthRoleAccess(string controlName, string actioname) : base(Auth2.URL, "GET", Auth2.map, Auth2.Expression(controlName, actioname), "UserID", "Token") { }