Esempio n. 1
0
        public static Match UsingTask(string message)
        {
            if (TaskFoundFromFactory.IsMatch(message))
            {
                return(TaskFoundFromFactory.Match(message));
            }

            if (TaskFound.IsMatch(message))
            {
                return(TaskFound.Match(message));
            }

            return(Match.Empty);
        }
        public static Match UsingTask(string message)
        {
            if (TaskFoundFromFactory.Match(message) is Match foundFromFactory && foundFromFactory.Success)
            {
                return(foundFromFactory);
            }

            if (TaskFound.Match(message) is Match found && found.Success)
            {
                return(found);
            }

            return(Match.Empty);
        }