public void GenerateReport() { Console.WriteLine("Start Generate Report..."); Thread.Sleep(2000); Console.WriteLine("Report Generated"); var eventArgs = new ReportEventArgs { ReportSummary = "New Report Summary" }; ReportGenerated?.Invoke(this, eventArgs); }
public void OnReportGenerated(object sender, ReportEventArgs args) { Console.WriteLine($"LoggingService add log for [{args.ReportSummary}]"); Thread.Sleep(1000); Console.WriteLine("LoggingService log added."); }
public void OnReportGenerated(object sender, ReportEventArgs args) { Console.WriteLine($"MsgService sending msg for [{args.ReportSummary}]"); Thread.Sleep(2000); Console.WriteLine("MsgService msg sent."); }