Exemplo n.º 1
0
        public bool TryNotify(string businessKey, CommentActionType actionType)
        {
            var m = new Regex(Regex).Match(businessKey);

            if (Action == null || !m.Success)
            {
                return(false);
            }

            Action(null, m, actionType);
            return(true);
        }
Exemplo n.º 2
0
        public bool TryNotify(Comment comment, CommentActionType actionType)
        {
            var m = new Regex(Regex).Match(comment.BusinessKey);

            if (Action == null || !m.Success)
            {
                return(false);
            }

            Action(comment, m, actionType);
            return(true);
        }