Exemple #1
0
 /// <summary>
 /// Checks that the given <paramref name="webHook"/> is not paused and matches at least
 /// one of the given <paramref name="actions"/>.
 /// </summary>
 /// <param name="webHook">The <see cref="WebHook"/> instance to operate on.</param>
 /// <param name="actions">The set of actions to match against the <paramref name="webHook"/> filters.</param>
 /// <returns><c>true</c> if the given <paramref name="webHook"/> matches one of the pro</returns>
 protected virtual bool MatchesAnyAction(WebHook webHook, IEnumerable<string> actions)
 {
     return webHook != null && !webHook.IsPaused && webHook.MatchesAnyAction(actions);
 }
 /// <summary>
 /// Checks that the given <paramref name="webHook"/> is not paused and matches at least
 /// one of the given <paramref name="actions"/>.
 /// </summary>
 /// <param name="webHook">The <see cref="WebHook"/> instance to operate on.</param>
 /// <param name="actions">The set of actions to match against the <paramref name="webHook"/> filters.</param>
 /// <returns><c>true</c> if the given <paramref name="webHook"/> matches one of the pro</returns>
 protected virtual bool MatchesAnyAction(WebHook webHook, IEnumerable <string> actions)
 {
     return(webHook != null && !webHook.IsPaused && webHook.MatchesAnyAction(actions));
 }