/// <summary> /// Takes next <see cref="LogEntryModel"/> from the pipe. /// </summary> /// <returns>Next <see cref="LogEntryModel"/> in the pipe.</returns> public LogEntryModel Take() { LogEntryModel result = _nextEntry; _nextEntry = _parser.HasNext() ? _parser.GetEntry() : null; return(result); }