示例#1
0
 internal async Task ServerOutputNotification(ServerOutputNotification notification)
 {
     if (ConsoleOutputReceived != null)
     {
         await ConsoleOutputReceived?.Invoke(notification);
     }
 }
示例#2
0
        /// <summary>
        /// Callback for all output lines coming from the underlying <see cref="process"/>.
        /// </summary>
        private void OnConsoleOutputReceived(object sender, DataReceivedEventArgs e)
        {
            if (string.IsNullOrEmpty(e.Data))
            {
                return;
            }

            if (LogConsoleToTrace)
            {
                Log.Info(this, "Info: " + e.Data);
            }
            ConsoleOutputReceived?.Invoke(e.Data);
        }