Beispiel #1
0
        private void OnOutputReceived(XProcessOutputType outputType, string?data)
        {
            if (data == null)
            {
                return;
            }

            var fragment = new XProcessOutputFragment(outputType, data);

            lock (this.OutputBuffer) this.OutputBuffer.Add(fragment);
            this.OutputChannel.Writer.TryWrite(fragment);
        }
Beispiel #2
0
 public XProcessOutputFragment(XProcessOutputType type, string data)
 {
     Type = type;
     Data = data;
 }