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