コード例 #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);
        }