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); }
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; }