public static RunSummary SuccessfulRunSummary( string runId, TimeSpan elapsed, ProcessingNotificationsCollector processingNotificationsCollector, ProcessLogSetResult processLogSetResult, WorkbookGeneratorResults workbookGeneratorResults, PublisherResults publisherResults) { return(new RunSummary( runId, elapsed, processingNotificationsCollector, processLogSetResult, workbookGeneratorResults, publisherResults, null, ExitReason.CompletedSuccessfully)); }
private RunSummary( string runId, TimeSpan elapsed, ProcessingNotificationsCollector processingNotificationsCollector, ProcessLogSetResult processLogSetResult, WorkbookGeneratorResults workbookGeneratorResults, PublisherResults publisherResults, string reasonForFailure, ExitReason exitReason) { RunId = runId; Elapsed = elapsed; ExitReason = exitReason; ProcessingNotificationsCollector = processingNotificationsCollector; WorkbookGeneratorResults = workbookGeneratorResults; ProcessLogSetResult = processLogSetResult; PublisherResults = publisherResults; ReasonForFailure = reasonForFailure; }
public static RunSummary FailedRunSummary( string runId, string errorMessage, ExitReason exitReason = ExitReason.UnclassifiedError, ProcessingNotificationsCollector processingNotificationsCollector = null, TimeSpan?elapsed = null, ProcessLogSetResult processLogSetResult = null, WorkbookGeneratorResults workbookGeneratorResults = null, PublisherResults publisherResults = null) { return(new RunSummary( runId, elapsed ?? TimeSpan.Zero, processingNotificationsCollector, processLogSetResult, workbookGeneratorResults, publisherResults, errorMessage, exitReason)); }