Exemplo n.º 1
0
        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);
                    }
                }
            }
        }
Exemplo n.º 2
0
 public void AddMonitorOuputEvent(FCgProcessMonitorOutputEvent e)
 {
     MonitorOuputEvents.Add(e);
 }