/// <summary> /// <see cref="RecommenderRun.Interrupted"/> handler which sets ErrorHappened flag to true. /// </summary> /// <param name="sender">The sender of the event.</param> /// <param name="e">The arguments of the event.</param> private static void FlagRaisingRecommenderRunInterruptedHandler(object sender, RecommenderRunInterruptedEventArgs e) { HasFailed = true; }
/// <summary> /// <see cref="RecommenderRun.Interrupted"/> handler which prints results to console. /// </summary> /// <param name="sender">The sender of the event.</param> /// <param name="e">The arguments of the event.</param> private static void ConsoleOutputRecommenderRunInterruptedHandler(object sender, RecommenderRunInterruptedEventArgs e) { Console.WriteLine(); PrintErrorMessage(e.Exception); Console.WriteLine(); }