コード例 #1
0
        public StepLog LogStep(IStep step)
        {
            if (step == null)
            {
                throw new ArgumentNullException("step");
            }
            StepLog stepLog = new StepLog(this, step, this._output);

            this._steps.Add(stepLog);
            return(stepLog);
        }
コード例 #2
0
        internal MessageLog(StepLog stepLog, string message, Output output)
            : this(stepLog.TaskLog, message)
        {
            if (output == null)
            {
                throw new ArgumentNullException(nameof(output));
            }

            StepLog = stepLog;

            output.Message("{0}: {1}", stepLog.Name, message);
        }
コード例 #3
0
        public StepLog LogStep(IStep step)
        {
            if (step == null)
            {
                throw new ArgumentNullException(nameof(step));
            }

            var log = new StepLog(this, step, _output);

            _steps.Add(log);

            return(log);
        }