Class NetInput
IInput<TInputRecord> implementation that uses native dotnet methods e.g. Console. The Peek() and Read() methods are executed on the input thread created by StartInputTaskAsync(IApplication).
public class NetInput : InputImpl<ConsoleKeyInfo>, ITestableInput<ConsoleKeyInfo>, IInput<ConsoleKeyInfo>, IDisposable
- Inheritance
-
NetInput
- Implements
- Inherited Members
Constructors
- NetInput()
Creates a new instance of the class. Implicitly sends console mode settings that enable virtual input (mouse reporting etc).
Methods
- AddInput(ConsoleKeyInfo)
Adds an input record that will be returned by Peek/Read for testing.
- Dispose()
Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
- Peek()
When implemented in a derived class, returns true if there is data available to read from console.