CmisSync.ControllerBase.EnableRepositorySynchronization C# (CSharp) Method

EnableRepositorySynchronization() public method

Enable synchronization for a particular folder.
public EnableRepositorySynchronization ( string repoName ) : void
repoName string the folder to enable sync for
return void
        public void EnableRepositorySynchronization(string repoName)
        {
            lock (this.repo_lock)
            {
                foreach (RepoBase aRepo in this.repositories)
                {
                    if (aRepo.Name.Equals(repoName))
                    {
                    if ( ! aRepo.Enabled)
                        {
                            aRepo.Enable();
                            Logger.Debug("Requested to resume sync of repo " + aRepo.Name);
                        }
                    }
                }
            }
        }