示例#1
0
 private static void AlarmListener2(object sender, Alarm.AlarmEventArgs e)
 {
     Console.WriteLine("Alarm 2 called by " + e.Location);
 }
示例#2
0
 private static void AlarmListener1(object sender, Alarm.AlarmEventArgs e)
 {
     Console.WriteLine("Alarm 1 called by " + e.Location);
     throw new Exception("boom");
 }