コード例 #1
0
 protected override void OnExecuting()
 {
     this.CurrentExecution = new DebugExecution(this)
     {
         Begin = DateTime.Now
     };
     this.Executions.Add(this.CurrentExecution);
 }
コード例 #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;
        }