Ejemplo n.º 1
0
        /// <summary>
        /// Makes the archive ready for operating.
        /// </summary>
        public override void MakeReady()
        {
            ValidateOptions();
            adapter.ParentDirectory = Path.Combine(moduleConfig.SelectArcDir(options.UseCopyDir), Code);
            Directory.CreateDirectory(adapter.ParentDirectory);

            DateTime utcNow = DateTime.UtcNow;

            CheckCurrentTrendTable(utcNow);

            if (options.WritingMode == WritingMode.AutoWithPeriod)
            {
                nextWriteTime = GetNextWriteTime(utcNow, writingPeriod);
            }
        }
Ejemplo n.º 2
0
 /// <summary>
 /// Makes the archive ready for operating.
 /// </summary>
 public override void MakeReady()
 {
     adapter.FileName = Path.Combine(moduleConfig.SelectArcDir(options.UseCopyDir), Code, CurDataFileName);
     Directory.CreateDirectory(Path.GetDirectoryName(adapter.FileName));
     nextWriteTime = GetNextWriteTime(DateTime.UtcNow, options.WritingPeriod);
 }
Ejemplo n.º 3
0
 /// <summary>
 /// Makes the archive ready for operating.
 /// </summary>
 public override void MakeReady()
 {
     archivePath = Path.Combine(moduleConfig.SelectArcDir(options.UseCopyDir), Code);
     Directory.CreateDirectory(archivePath);
     GetEventTable(DateTime.UtcNow); // preload the current table
 }