static void Main(string[] args)
 {
     Console.WriteLine("Insertion of alarm attendant via controller");
     Console.ReadLine();
     ExtendedControl.createAlarmAttendance("cacat", "shortie");
     Console.ReadLine();
 }
 public void createAlarmAttendance(string alarmName, string userName)
 {
     if (System.Threading.Monitor.TryEnter(obj1, 10000))
     {
         try
         {
             ExtendedControl.createAlarmAttendance(alarmName, userName);
         }
         finally
         {
             System.Threading.Monitor.Exit(obj1);
         }
     }
 }