Exemplo n.º 1
0
 private bool IsValidAction(HandlerActions requestedAction, string[] actions)
 => requestedAction == HandlerActions.None ||
 actions.InvariantContains("all") ||
 actions.InvariantContains(requestedAction.ToString());
Exemplo n.º 2
0
 /// <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());