internal StepLog(TaskLog taskLog, IStep step, Output output) { if (taskLog == null) { throw new ArgumentNullException(nameof(taskLog)); } if (step == null) { throw new ArgumentNullException(nameof(step)); } if (output == null) { throw new ArgumentNullException(nameof(output)); } _output = output; _messages = new List <MessageLog>(); TaskLog = taskLog; Name = step.Name(); TaskLog.Persist(this); _output.Message(Name); }
public override void Dispose() { base.Dispose(); TaskLog.Persist(this); }