Пример #1
0
 public RepositorySettings(
     DirectoryInfo directory,
     bool isTrackingDirty,
     bool isCaching,
     BackupSettings backupSettings,
     string extension     = ".cfg",
     string tempExtension = ".tmp")
     : this(
         PathAndSpecialFolder.Create(directory),
         isTrackingDirty,
         isCaching,
         backupSettings,
         extension,
         tempExtension)
 {
 }
Пример #2
0
 public BackupSettings(
     DirectoryInfo directory,
     bool isCreatingBackups,
     string extension,
     string timeStampFormat,
     bool hidden,
     int numberOfBackups,
     int maxAgeInDays)
     : this(
         directory != null ? PathAndSpecialFolder.Create(directory) : null,
         isCreatingBackups,
         extension,
         timeStampFormat,
         hidden,
         numberOfBackups,
         maxAgeInDays)
 {
 }
Пример #3
0
 public FileSettings(DirectoryInfo directory, string extension)
 {
     _directoryPath = PathAndSpecialFolder.Create(directory);
     _extension     = FileHelper.PrependDotIfMissing(extension);
 }