Exemple #1
0
        /// <summary>
        /// Send a MonitorEntry to the queue to be processed
        /// </summary>
        public static void LogToMonitor(MonitorEntry entry)
        {
            entry.Message = entry.Message.Trim();
            entry.Method  = entry.Method.Trim();
            // don't add to queue if not needed
            switch (entry.Type)
            {
            case MonitorType.Warning:
            case MonitorType.Error:
            case MonitorType.Information:
                MonitorQueue.AddEntry(entry);
                break;

            case MonitorType.Data:
                if (GetJEntries || Settings.StartMonitor)
                {
                    MonitorQueue.AddEntry(entry);
                }
                break;

            default:
                throw new ArgumentOutOfRangeException();
            }
        }
Exemple #2
0
 /// <summary>
 /// Send a PulseEntry to the queue to be processed
 /// </summary>
 public static void LogToMonitor(PulseEntry entry)
 {
     MonitorQueue.AddPulse(entry);
 }
Exemple #3
0
 /// <summary>
 /// reset the count from the UI
 /// </summary>
 public static void ResetIndex()
 {
     MonitorQueue.ResetMonitorIndex();
     // _index = 0;
 }