Esempio n. 1
0
 /// <summary>
 /// Submit TrageData to DB
 /// </summary>
 /// <param name="device"></param>
 /// <param name="reason"></param>
 protected override void GatherTriageData(IDevice device, string reason)
 {
     try
     {
         if (_regusKioskApp != null)
         {
             JetAdvantageLinkTriage triage = new JetAdvantageLinkTriage(_regusKioskApp.Device, _regusKioskApp.LinkUI, ExecutionData);
             triage.CollectTriageData(reason);
             triage.Submit();
         }
         else
         {
             UpdateStatus("Device is null - cannot gather triage data.");
         }
     }
     catch (Exception ex)
     {
         UpdateStatus($"GatherTriageData failed - cannot gather triage data. {ex.ToString()}");
     }
     finally
     {
         if (_regusKioskApp != null)
         {
             UpdateStatus($"Dispose RegusKioskApp on GatherTriageData");
             _regusKioskApp.Dispose();
         }
     }
 }
 /// <summary>
 /// Submit TrageData to DB
 /// </summary>
 /// <param name="device"></param>
 /// <param name="reason"></param>
 protected override void GatherTriageData(IDevice device, string reason)
 {
     try
     {
         if (_imanage != null)
         {
             JetAdvantageLinkTriage triage = new JetAdvantageLinkTriage(_imanage.Device, _imanage.LinkUI, ExecutionData);
             triage.CollectTriageData(reason);
             triage.Submit();
         }
         else
         {
             UpdateStatus("Device is null - cannot gather triage data.");
         }
     }
     catch (Exception ex)
     {
         UpdateStatus($"GatherTriageData failed - cannot gather triage data: {ex.Message}");
     }
     finally
     {
         if (_imanage != null)
         {
             UpdateStatus($"Dispose CloudApp on GatherTriageData");
             _imanage.Dispose();
         }
     }
 }