Class TerminalUtils.AbortableLineReader
Allows to execute an otherwise-blocking Console.ReadLine() call with the ability to abort the call gracefully. This class can be constructed only once per process
Inheritance
System.Object
TerminalUtils.AbortableLineReader
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Azos.IO
Assembly: Azos.dll
Syntax
public sealed class AbortableLineReader
Constructors
AbortableLineReader()
This .ctor can be called only once per process
Declaration
public AbortableLineReader()
Properties
Aborted
Declaration
public bool Aborted { get; }
Property Value
Type | Description |
---|---|
System.Boolean |
Line
Returns non-null when stdin supplied newline string
Declaration
public string Line { get; }
Property Value
Type | Description |
---|---|
System.String |
Methods
Abort(String)
Declaration
public void Abort(string line = null)
Parameters
Type | Name | Description |
---|---|---|
System.String | line |