2using System.Threading.Tasks;
11 private readonly TaskCompletionSource<ConsoleKeyInfo> result;
12 private readonly
bool intercept;
22 this.intercept = Intercept;
32 ConsoleKeyInfo Result = System.Console.ReadKey(this.intercept);
33 this.result.TrySetResult(Result);
37 this.result.TrySetException(ex);
40 return Task.CompletedTask;
Reads a key from the console.
override Task Execute()
Executes the console operation.
ConsoleInReadKey(bool Intercept, TaskCompletionSource< ConsoleKeyInfo > Result)
Reads a key from the console.
Manages a Console operation.