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); }
public XProcessOutputFragment(XProcessOutputType type, string data) { Type = type; Data = data; }