2using System.Threading.Tasks;
11 private readonly TaskCompletionSource<int> result;
12 private readonly
char[] buffer;
13 private readonly
int index;
14 private readonly
int count;
29 public ConsoleInRead(
char[] Buffer,
int Index,
int Count, TaskCompletionSource<int> Result)
44 int Result = await System.Console.In.ReadAsync(this.buffer, this.index, this.count);
45 this.result.TrySetResult(Result);
49 this.result.TrySetException(ex);
Reads characters from the console.
override async Task Execute()
Executes the console operation.
ConsoleInRead(char[] Buffer, int Index, int Count, TaskCompletionSource< int > Result)
Reads characters from the console.
Manages a Console operation.