Пример #1
0
        public bool Execute(string subject, IQueueTools tools, IOutput log)
        {
            bool alreadyExists = tools.Exists(subject);

            if (!alreadyExists)
            {
                log.Error(subject, "Doesn't exist.");
                return(false);
            }

            log.OK(subject, string.Format("{0} message(s).", tools.Count(subject)));
            return(true);
        }
Пример #2
0
        public bool Execute(string subject, IQueueTools tools, IOutput log)
        {
            bool alreadyExists = tools.Exists(subject);

            if (!alreadyExists)
            {
                log.Error(subject, "Doesn't exist.");
                return false;
            }

            log.OK(subject, string.Format("{0} message(s).", tools.Count(subject)));
            return true;
        }