コード例 #1
0
        protected CmdResult SuccessOrFailure()
        {
            var cr = CurrentRequest.Complete(Name, Name + " " + failure + " failures and " + success + " successes",
                                             failure == 0);

            LocalWL(cr.ToPostExecString());
            return(cr);
        }
コード例 #2
0
        public CmdResult Result(string message, bool tf)
        {
            if (!message.ToLower().Contains(Name.ToLower()))
            {
                message = Name + ": " + message;
            }
            var cr = CurrentRequest.Complete(Name, message, tf);

            LocalWL(message);
            return(cr);
        }