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

            file.Open();
            return(file);
        }
Exemplo 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);
        }
Exemplo n.º 3
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;
        }
Exemplo n.º 4
0
 public IPersistantQueueFileReader OpenCurrentReadFile()
 {
     var file = new PersistantQueueFileReader(ReadFileName);
     file.Open();
     return file;
 }