Esempio n. 1
0
        public IPersistantQueueFileReader OpenCurrentReadFile()
        {
            var file = new PersistantQueueFileReader(ReadFileName);

            file.Open();
            return(file);
        }
Esempio n. 2
0
        /// <summary>
        ///     Open next read file
        /// </summary>
        /// <returns></returns>
        public IPersistantQueueFileReader OpenNextReadFile()
        {
            if (!CanIncreaseReadFile())
            {
                throw new InvalidOperationException("There is only one file. We cannot move forward.");
            }

            _files.RemoveFirst();

            ReadFileName = _files.First.Value;
            var file = new PersistantQueueFileReader(ReadFileName);

            file.Open();
            return(file);
        }
        /// <summary>
        ///     Open next read file
        /// </summary>
        /// <returns></returns>
        public IPersistantQueueFileReader OpenNextReadFile()
        {
            if (!CanIncreaseReadFile())
                throw new InvalidOperationException("There is only one file. We cannot move forward.");

            _files.RemoveFirst();

            ReadFileName = _files.First.Value;
            var file = new PersistantQueueFileReader(ReadFileName);
            file.Open();
            return file;
        }
 public IPersistantQueueFileReader OpenCurrentReadFile()
 {
     var file = new PersistantQueueFileReader(ReadFileName);
     file.Open();
     return file;
 }