private bool IsValidAction(HandlerActions requestedAction, string[] actions) => requestedAction == HandlerActions.None || actions.InvariantContains("all") || actions.InvariantContains(requestedAction.ToString());
/// <summary> /// checks to see if the reuqested action is valid for the configured list of actions. /// </summary> public static bool IsValidAction(this HandlerActions requestedAction, IEnumerable <string> actions) => requestedAction == HandlerActions.None || actions.Count() == 0 || actions.InvariantContains("all") || actions.InvariantContains(requestedAction.ToString());