TODO merge with Config.Feature ?
示例#1
0
 public RepoInfo(string name, string cmisDatabaseFolder, string remotePath, string address, string user, string password, string repoID, double pollInterval, Boolean isSuspended, DateTime lastSuccessedSync, bool syncAtStartup)
 {
     Name = name;
     name = name.Replace("\\", "_");
     name = name.Replace("/", "_");
     CmisDatabase = Path.Combine(cmisDatabaseFolder, name + ".cmissync");
     RemotePath = remotePath;
     Address = new Uri(address);
     User = user;
     Password = password;
     RepoID = repoID;
     TargetDirectory = Path.Combine(ConfigManager.CurrentConfig.FoldersPath, name);
     PollInterval = pollInterval;
     IsSuspended = isSuspended;
     LastSuccessedSync = lastSuccessedSync;
     SyncAtStartup = syncAtStartup;
     ChunkSize = 0;
     MaxUploadRetries = 2;
     MaxDownloadRetries = 2;
     MaxDeletionRetries = 2;
     CmisProfile = new CmisProfile();
 }
示例#2
0
 /// <summary>
 /// Simple constructor.
 /// </summary>
 public RepoInfo(string name, string cmisDatabaseFolder)
 {
     Name = name;
     name = name.Replace("\\", "_");
     name = name.Replace("/", "_");
     CmisDatabase = Path.Combine(cmisDatabaseFolder, name + ".cmissync");
     CmisProfile = new CmisProfile();
 }