Esempio n. 1
0
 internal MessageLog(Vertica.Integration.Infrastructure.Logging.TaskLog taskLog, string message, Output output) : this(taskLog, message)
 {
     if (output == null)
     {
         throw new ArgumentNullException("output");
     }
     output.Message("{0}: {1}", new object[] { taskLog.Name, message });
 }
Esempio n. 2
0
 private MessageLog(Vertica.Integration.Infrastructure.Logging.TaskLog taskLog, string message) : base(false)
 {
     if (taskLog == null)
     {
         throw new ArgumentNullException("taskLog");
     }
     this.TaskLog = taskLog;
     this.Message = message.MaxLength(4000);
 }
Esempio n. 3
0
 internal StepLog(Vertica.Integration.Infrastructure.Logging.TaskLog taskLog, IStep step, Output output) : base(true)
 {
     if (taskLog == null)
     {
         throw new ArgumentNullException("taskLog");
     }
     if (step == null)
     {
         throw new ArgumentNullException("step");
     }
     if (output == null)
     {
         throw new ArgumentNullException("output");
     }
     this._output   = output;
     this._messages = new List <MessageLog>();
     this.TaskLog   = taskLog;
     this.Name      = step.Name();
     this.TaskLog.Persist(this);
     this._output.Message(this.Name, new object[0]);
 }