/// <summary> /// Returns the next committed record in the application log if there is one, /// null otherwise. /// </summary> /// <returns>The next log record or <c>null</c>.</returns> /// <remarks> /// <para> /// Note that this method returns only committed log records. Records written /// by the writer logs will be cached for some period of time before being /// commited to the log (for efficiency). Cached records will not be returned /// by this method. /// </para> /// <para> /// After this method indicates that it has run out of committed records to be read /// (by returning null), applications should monitor the <see cref="AppLog.RecordAvailable" /> /// event. This event will be raised when one or more committed events become available to /// be read. /// </para> /// </remarks> public AppLogRecord Read() { return(appLog.Read()); }