Esempio n. 1
0
        private static void HandleTaskStarted(
            TaskStartedEvent e)
        {
            var diagnosticsLog = new DiagnosticsLog(
                DiagnosticsProvider.GetGlobalDiagnostic(),
                DiagnosticsProvider.GetFirstDiagnostic());

            var log = new TaskExecutionLog(diagnosticsLog);

            log.TaskDuration.SetStart(e.Timestamp);

            e.Task.SetExecutionLog(log);
        }
Esempio n. 2
0
 public TaskExecutionLog(
     DiagnosticsLog diagnosticsLog)
 {
     DiagnosticsLog = diagnosticsLog;
 }