public void SendInput(string input, string userId) { if (MessageParser == null || MessageParser.FilterInput(input)) { var log = new ApplicationLog { ApplicationLogType = ApplicationLogType.Stdin, LogTime = DateTime.UtcNow, LogText = input, UserId = userId }; LogInputOutput(log); _proc.StandardInput.WriteLine(input); _proc.StandardInput.Flush(); _standardOutputQueue.Enqueue(log); } }