Inheritance: System.EventArgs
Esempio n. 1
0
        protected virtual void OnConsoleOutput(ConsoleOutputEventArgs e)
        {
            if (e.Line == null)
            {
                return;
            }

            Trace.TraceInformation("{0}> {1}", e.IsError ? "stderr" : "stdout", e.Line);

            ConsoleOutput?.Invoke(this, e);
        }
Esempio n. 2
0
        protected virtual void OnConsoleOutput(ConsoleOutputEventArgs e)
        {
            if (e.Line == null)
            {
                return;
            }

            Trace.TraceInformation("{0}> {1}", e.IsError ? "stderr" : "stdout", e.Line);

            var handler = ConsoleOutput;

            if (handler != null)
            {
                handler(this, e);
            }
        }
Esempio n. 3
0
        protected virtual void OnConsoleOutput(ConsoleOutputEventArgs e)
        {
            if (e.Line == null)
                return;

            Trace.TraceInformation("{0}> {1}", e.IsError ? "stderr" : "stdout", e.Line);

            var handler = ConsoleOutput;
            if (handler != null)
                handler(this, e);
        }
Esempio n. 4
0
        private void OnConsoleOutput(object sender, ConsoleOutputEventArgs e)
        {
            try
            {
                OnOutput(new NgenOutputEventArgs(e.Line));
            }
            catch (Exception ex)
            {
                Trace.TraceError("OnOutput exception ignored: Error={0}", ex.ToString());
            }

            UpdateProgress(e.Line);
        }