Example #1
0
        public IPersistantQueueFileWriter OpenCurrentWriteFile()
        {
            var file = new PersistantQueueFileWriter(WriteFileName);

            file.Open();
            return(file);
        }
Example #2
0
        /// <summary>
        ///     Move to the next file.
        /// </summary>
        /// <remarks>
        ///     <para>
        ///         TODO: Delete the oldest file if the number of files have been exceeded.
        ///     </para>
        /// </remarks>
        public IPersistantQueueFileWriter CreateNewWriteFile()
        {
            WriteFileName = GetFileName();
            _files.AddLast(WriteFileName);
            var file = new PersistantQueueFileWriter(WriteFileName);

            file.Open();
            return(file);
        }