/// <summary> /// Writes the input. /// </summary> /// <param name="input">The input.</param> public void WriteInput(string input) { if (IsProcessRunning && InputWriter is not null) { InputWriter.WriteLine(input); InputWriter.Flush(); } }
protected override void When() { _inputWriter.WriteLine("Testing"); }
protected override Task WhenAsync(CancellationToken cancellationToken) { return(Task.Run(() => _inputWriter.WriteLine("Testing"), cancellationToken)); }