private void RegisterFileTailReader(string file, long position) { var fileTailReader = new FileTailReader(file) { LastPosition = position }; _fileTailReaders.AddOrUpdate(file, fileTailReader, (s, reader) => reader); }
private FileTailReader RegisterFileTailReader(string file, bool setToEof) { var fileTailReader = new FileTailReader(file); if (setToEof) { fileTailReader.SetToEof(); } _fileTailReaders.AddOrUpdate(file, fileTailReader, (s, reader) => reader); return(fileTailReader); }