Esempio n. 1
0
        private void StopEventPump()
        {
            _logEventQueueList.Flush();

            if (_eventPump != null) {
                Exception e = _eventPump.Stop();
                _eventPump = null;

                if (e != null) {
                    if (e is BuildException) {
                        throw new BuildException(e.Message,
                            e.InnerException);
                    } else {
                        throw new BuildException("One or more errors occurred in the <multitask> threads; check log output above this line for details.  The first (and possibly only) error encountered was:",
                            Location,
                            e);
                    }
                }
            }
        }
Esempio n. 2
0
 private void StartEventPump(BuildListenerCollection handlers)
 {
     _eventPump = new LogEventPump(_logEventQueueList, handlers);
     _eventPump.Start();
 }