public void DoTheThing(FailingJobParams message, CancellationTokenSource cancellationTokenSource, Action <string> progress) { Logger.DebugWithLineNumber("'Failing Job Code' Do The Thing method called."); var jobProgress = new TestJobProgress { Text = WhoAmI + ": This job will soon throw exeception.", ConsoleColor = ConsoleColor.DarkRed }; progress(jobProgress.Text); throw new Exception(message.Error); }
public void DoTheThing(FailingJobParams message, CancellationTokenSource cancellationTokenSource, Action<string> progress) { Logger.DebugWithLineNumber("'Failing Job Code' Do The Thing method called."); var jobProgress = new TestJobProgress { Text = WhoAmI + ": This job will soon throw exeception.", ConsoleColor = ConsoleColor.DarkRed }; progress(jobProgress.Text); throw new Exception(message.Error); }