public void ProcessMonitorOutputEvents(string ouput) { int count = MonitorOuputEvents.Count; for (int i = count - 1; i >= 0; --i) { FCgProcessMonitorOutputEvent o = MonitorOuputEvents[i]; o.ProcessOutput(ouput); if (o.HasCompleted()) { o.Clear(); // FireOnce if (o.Purpose == ECgProcessMonitorOutputEventPurpose.FireOnce) { MonitorOuputEvents.RemoveAt(i); } } } }
public void AddMonitorOuputEvent(FCgProcessMonitorOutputEvent e) { MonitorOuputEvents.Add(e); }