public async Task <CentralinoLines> ReadLines(int linesMaxLimit = 0)
        {
            List <string> lines      = new List <string>();
            int           linesCount = 0;
            string        line       = null;

            do
            {
                AddNotNullLine(line, lines);
                line = await ReadALineWithTimeout(timeout : 1000);

                linesCount++;
            } while (!TimedOut(line) && (linesCount <= linesMaxLimit || linesMaxLimit == 0));

            return(CentralinoLines.Parse(lines.ToArray()));
        }
示例#2
0
 private bool Equals(CentralinoLines other)
 {
     return(Lines.SequenceEqual(other.Lines));
 }