Exemplo n.º 1
0
 protected override void OnExecuting()
 {
     this.CurrentExecution = new DebugExecution(this)
     {
         Begin = DateTime.Now
     };
     this.Executions.Add(this.CurrentExecution);
 }
Exemplo n.º 2
0
        protected override void OnExecuted()
        {
            if (this.CurrentExecution == null)
            {
                this.CurrentExecution = new DebugExecution(this)
                {
                    Begin = DateTime.Now
                };
                this.Executions.Add(this.CurrentExecution);
            }

            this.CurrentExecution.End = DateTime.Now;
        }