public ScriptOutput Append(string text, ConsoleColor color = ConsoleColor.Gray) { lock (lockHandle) { ansiWriter.Write(text, color); } OnChanged(); return(this); }
public ScriptOutput Write(string text, ConsoleColor color = ConsoleColor.Gray) { if (lockHandle == null) { throw new ApplicationException("LockHandle is undefined!"); } lock (lockHandle.Value) { ansiWriter.Write(text, color); } OnChanged(); return(this); }