예제 #1
0
        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);
        }
예제 #2
0
 public void OnReportGenerated(object sender, ReportEventArgs args)
 {
     Console.WriteLine($"LoggingService add log for [{args.ReportSummary}]");
     Thread.Sleep(1000);
     Console.WriteLine("LoggingService log added.");
 }
예제 #3
0
 public void OnReportGenerated(object sender, ReportEventArgs args)
 {
     Console.WriteLine($"MsgService sending msg for [{args.ReportSummary}]");
     Thread.Sleep(2000);
     Console.WriteLine("MsgService msg sent.");
 }