3using System.Threading.Tasks;
13 private readonly TaskCompletionSource<string> result;
28 public override async Task
Execute(CancellationToken Cancel)
32 string Data = await
System.Console.In.ReadToEndAsync();
33 this.result.TrySetResult(Data);
37 this.result.TrySetException(ex);
Reads a line from the console.
override async Task Execute(CancellationToken Cancel)
Executes the console operation.
ConsoleInReadToEnd(TaskCompletionSource< string > Result)
Reads a line from the console.
Represents an asynchronous operation to be performed.