2using System.Threading.Tasks;
28 Task
WriteAsync(
string text,
bool newLine, CancellationToken cancellationToken);
43 Task<string>
ReadLineAsync(
bool usePasswordChar, CancellationToken cancellationToken);
Abstraction for global::System.Console.
CancellationToken CancelKeyPress
Gets a CancellationToken that triggers if Crtl+C or an equivalent is pressed.
bool Available
If the IConsole is visible to the user.
Task< string > ReadLineAsync(bool usePasswordChar, CancellationToken cancellationToken)
Read a line from the IConsole.
Task PressAnyKeyAsync(CancellationToken cancellationToken)
Wait for a key press on the IConsole.
Task WriteAsync(string text, bool newLine, CancellationToken cancellationToken)
Write some text to the IConsole.