示例#1
0
        /// <summary>
        /// Gathers the triage data for prosperity.
        /// </summary>
        /// <param name="reason">The reason.</param>
        protected virtual void GatherTriageData(string reason)
        {
            ITriage triage = TriageFactory.Create(Device, ExecutionData);

            triage.CollectTriageData(reason);
            triage.Submit();
        }
示例#2
0
 private void GatherTriageData(IDevice device, string reason)
 {
     if (device != null)
     {
         ITriage triage = TriageFactory.Create(device, _executionData);
         triage.CollectTriageData(reason);
         triage.Submit();
     }
 }
示例#3
0
 private void GatherTriageData(IDevice device, string reason)
 {
     if (device != null)
     {
         ITriage triage = TriageFactory.Create(device, _executionData);
         triage.CollectTriageData(reason);
         triage.Submit();
     }
     else
     {
         LogDebug("Device is null - cannot gather triage data.");
     }
 }
        /// <summary>
        /// Gathers the triage data.
        /// </summary>
        /// <param name="reason">The reason.</param>
        private void GatherTriageData(string reason, DirtyDeviceManager pluginActivityManager)
        {
            if (pluginActivityManager?.Device == null)
            {
                var mgrState    = (pluginActivityManager == null) ? "IS" : "IS NOT";
                var deviceState = (pluginActivityManager?.Device == null) ? "IS" : "IS NOT";
                throw new ArgumentException($"Cannot triage null device.  ({nameof(pluginActivityManager)} {mgrState} null.  {nameof(pluginActivityManager)}.Device {deviceState} null.)");
            }

            ITriage triage = TriageFactory.Create(pluginActivityManager.Device, _executionData);

            triage.CollectTriageData(reason);
            triage.Submit();
        }
 /// <summary>
 /// Submit TrageData to DB
 /// </summary>
 /// <param name="device"></param>
 /// <param name="reason"></param>
 protected virtual void GatherTriageData(IDevice device, string reason)
 {
     try
     {
         if (device != null)
         {
             ITriage triage = TriageFactory.Create(device, ExecutionData);
             triage.CollectTriageData(reason);
             triage.Submit();
         }
         else
         {
             LogDebug("Device is null - cannot gather triage data.");
         }
     }
     catch (Exception)
     {
         UpdateStatus($"GatherTriageData failed - cannot gather triage data.");
     }
 }