static void AlarmListener3(object source, AlarmEventArgs args) { Console.WriteLine("Alarm listener 1 is called"); Console.WriteLine("Alarm in {0}", args.Location); throw new Exception("Boom"); }
static void AlarmListener1(object source, AlarmEventArgs args) { Console.WriteLine("Alarm listener 1 is called"); Console.WriteLine("Alarm in {0}", args.Location); }