예제 #1
0
        public void ShowLifeSign()
        {
            EmployeeArgs args = new EmployeeArgs {
                Message = $"For the record: {Name} is alive"
            };

            pulse(this, args);
        }
예제 #2
0
        public void ListenSignal(object sender, EmployeeArgs args)
        {
            Employee employ = (Employee)sender;

            Console.WriteLine($"Bip from {employ.Name}");
        }
예제 #3
0
 public void ListenLifesign(object sender, EmployeeArgs args)
 {
     Console.WriteLine(args.Message);
 }