TODO merge with Config.Feature ?
コード例 #1
0
ファイル: RepoInfo.cs プロジェクト: aegif/ASaasDriveClient
 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
ファイル: RepoInfo.cs プロジェクト: aegif/ASaasDriveClient
 /// <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();
 }