コード例 #1
0
ファイル: BaseJob.cs プロジェクト: mvirenius/ptv-1.7
        private void LogTaskStarted(JobExecutionTypeEnum executionType, int executionCnt, int retriesOnFail)
        {
            var message = executionType == JobExecutionTypeEnum.RunAfterFail
                ? $"Job '{JobType}' has been re-ran after fail. Attempt {executionCnt}/{retriesOnFail}."
                : $"Job '{JobType}' has been started.";

            TaskSchedulerLogger.LogJobInfo(JobType, executionType, JobResultStatusEnum.Started, message);
        }
コード例 #2
0
ファイル: BaseJob.cs プロジェクト: mvirenius/ptv-1.7
 private void LogTaskExecuted(TimeSpan timespan, JobExecutionTypeEnum executionType)
 {
     TaskSchedulerLogger.LogJobInfo(JobType, executionType, JobResultStatusEnum.Success, $"Job '{JobType}' has been sucessfully finished in {timespan}.");
 }