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

            file.Open();
            return(file);
        }
示例#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 = GetWriteFileName();
            _files.AddLast(WriteFileName);
            var file = new PersistantQueueFileWriter(WriteFileName);

            file.Open();
            return(file);
        }
 public IPersistantQueueFileWriter OpenCurrentWriteFile()
 {
     var file = new PersistantQueueFileWriter(WriteFileName);
     file.Open();
     return file;
 }
 /// <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 = GetWriteFileName();
     _files.AddLast(WriteFileName);
     var file = new PersistantQueueFileWriter(WriteFileName);
     file.Open();
     return file;
 }