예제 #1
0
        private void RegisterFileTailReader(string file, long position)
        {
            var fileTailReader = new FileTailReader(file)
            {
                LastPosition = position
            };

            _fileTailReaders.AddOrUpdate(file, fileTailReader, (s, reader) => reader);
        }
예제 #2
0
        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);
        }