CmisSync.Lib.RepoBase.Disable C# (CSharp) Method

Disable() public method

Stop syncing momentarily.
public Disable ( ) : void
return void
        public void Disable()
        {
            Enabled = false;
            RepoInfo.IsSuspended = true;

            //Get configuration
            Config config = ConfigManager.CurrentConfig;
            CmisSync.Lib.Config.SyncConfig.Folder syncConfig = config.GetFolder(this.Name);
            syncConfig.IsSuspended = true;
            config.Save();
        }