예제 #1
0
 public static ActionResult GenerateMachineId(Session session)
 {
     try
     {
         var worker = new CAWorker();
         worker.GenerateMachineId(session);
         return ActionResult.Success;
     }
     catch (Exception ex)
     {
         session.Log("Failed to genarate User Id. {0}", ex.Message);
         return ActionResult.Failure;
     }
 }
예제 #2
0
 public static ActionResult SendInstallEvent(Session session)
 {
     try
     {
         var worker = new CAWorker();
         worker.SendInstallEvent();                
         return ActionResult.Success;                
     }
     catch (Exception ex)
     {
         session.Log("Failed to track install. {0}", ex.Message);
         return ActionResult.Failure;
     }
 }