Exemplo n.º 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);
        }
Exemplo n.º 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.");
 }
Exemplo n.º 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.");
 }