Пример #1
0
 public DataRepositorySettings(
     string directory,
     bool isTrackingDirty,
     bool saveNullDeletesFile,
     BackupSettings backupSettings,
     string extension     = ".cfg",
     string tempExtension = ".tmp")
     : base(directory, isTrackingDirty, backupSettings, extension, tempExtension)
 {
     this.SaveNullDeletesFile = saveNullDeletesFile;
 }
Пример #2
0
        /// <summary>
        /// Initializes a new instance of the <see cref="RepositorySettings"/> class.
        /// </summary>
        public RepositorySettings(
            string directory,
            bool isTrackingDirty,
            BackupSettings backupSettings,
            string extension     = ".cfg",
            string tempExtension = ".tmp")
            : base(directory, extension)
        {
            Ensure.NotNullOrEmpty(extension, nameof(extension));
            Ensure.NotNullOrEmpty(tempExtension, nameof(tempExtension));
            Ensure.NotNull(directory, nameof(directory));

            this.IsTrackingDirty = isTrackingDirty;
            this.BackupSettings  = backupSettings;
            this.TempExtension   = FileHelper.PrependDotIfMissing(tempExtension);
        }