示例#1
0
        private void RecordFailedFeedRun(int feedId, IExecutionLogLogger executionLogLogger)
        {
            var feedRun = FeedRunService.GetLatestRun(feedId);

            feedRun.LastExecutionStartDate = executionLogLogger.GetExecutionStartTime();
            executionLogLogger.AddCustomMessage("This execution failed. Terminating execution.");
            feedRun.ExecutionLog = executionLogLogger.GetExecutionLog();
            FeedRunService.EndFeedRun(feedRun, false);
        }
        private void RecordFailedFeedRun(int feedId)
        {
            var feedRun = FeedRunService.GetLatestRun(feedId);

            feedRun.LastExecutionStartDate     = _reportInformation.ExecutionStartTime;
            feedRun.LastExecutionCompletedDate = DateTime.Now;
            _executionInformation.AddCustomMessage("This execution failed. Terminating execution.");
            feedRun.ExecutionLog = _executionInformation.GetExecutionLog();
            FeedRunService.EndFeedRun(feedRun, false);
        }
        private void HandleExit()
        {
            // Set the current run to be incomplete
            var feedRun = FeedRunService.GetLatestRun(FeedId);

            feedRun.LastExecutionStartDate = ExecutionLogLogger.GetExecutionStartTime();
            ExecutionLogLogger.AddCustomMessage("This execution failed. Terminating execution.");
            feedRun.ExecutionLog = ExecutionLogLogger.GetExecutionLog();
            FeedRunService.EndFeedRun(feedRun, false);

            Log.Info("Executed HandleExit()!");
        }