public void Fill(ExecutionArgs executionArgs) { if (HasChilds()) { var last = Childs.LastOrDefault(); if (last.Total == null) { Fill(last, (TimeSpan)executionArgs.Total, executionArgs.Result); } else { Fill(this, (TimeSpan)executionArgs.Total, executionArgs.Result); } } else { Fill(this, (TimeSpan)executionArgs.Total, executionArgs.Result); } }
private void Fill(ExecutionArgs executionArgs, TimeSpan _total, object _result) { executionArgs.Total = _total; executionArgs.Result = _result; }
internal static void AddToExecutionItem(this List <ExecutionItem> executions, ExecutionArgs executionArgs, IAspect aspect) { executions.Add(new ExecutionItem() { ExecutionArgs = executionArgs, Aspect = aspect }); }