Наследование: IActivityListener, UserNotificationListener
Пример #1
0
        /// <summary>
        /// Synchronize folder.
        /// </summary>
		private void Sync ()
		{
            ConsoleController controller = new ConsoleController();

            foreach (RepoInfo repoInfo in repos)
            {
                CmisRepo cmisRepo = new CmisRepo (repoInfo, controller);
                cmisRepo.SyncInNotBackground();
            }
		}
Пример #2
0
        /// <summary>
        /// Synchronize folder.
        /// </summary>
        private void Sync()
        {
            ConsoleController controller = new ConsoleController();

            foreach (RepoInfo repoInfo in repos)
            {
                CmisRepo cmisRepo = new CmisRepo(repoInfo, controller);
                cmisRepo.SyncInNotBackground();
            }
        }
Пример #3
0
        /// <summary>
        /// Synchronize folder.
        /// </summary>
        private bool Sync()
        {
            bool success = true;
            ConsoleController controller = new ConsoleController();

            foreach (RepoInfo repoInfo in repos)
            {
                CmisRepo cmisRepo = new CmisRepo(repoInfo, controller, false);
                success &= cmisRepo.SyncInForeground();
            }

            return(success);
        }
Пример #4
0
        /// <summary>
        /// Load folder configuration.
        /// </summary>
		private void Init (string folderName)
		{
			Config config = ConfigManager.CurrentConfig;
            CmisSync.Lib.Config.SyncConfig.Folder folder = config.getFolder(folderName);
            if (folder == null)
            {
                System.Console.WriteLine("No folder found with this name: " + folderName);
                return;
            }
			RepoInfo repoInfo = folder.GetRepoInfo();

			ConsoleController controller = new ConsoleController ();
			cmisRepo = new CmisRepo (repoInfo, controller);
		}
Пример #5
0
        private void init()
        {
            Config   config   = ConfigManager.CurrentConfig;
            RepoInfo repoInfo = config.GetRepoInfo("documentLibrary");

            ConsoleController controller = new ConsoleController();

            cmisRepo = new CmisRepo(repoInfo, controller);

            cmisRepo.Initialize();

            //main Loop
            cmisRepo.DoFirstSync();
            TimerCallback timerDelegate = new TimerCallback(Sync);
            Timer         timer         = new Timer(timerDelegate, null, 0, 1000);
        }
Пример #6
0
        /// <summary>
        /// Load folder configuration.
        /// </summary>
        private void Init(string folderName)
        {
            Config config = ConfigManager.CurrentConfig;

            CmisSync.Lib.Config.SyncConfig.Folder folder = config.getFolder(folderName);
            if (folder == null)
            {
                System.Console.WriteLine("No folder found with this name: " + folderName);
                return;
            }
            RepoInfo repoInfo = folder.GetRepoInfo();

            ConsoleController controller = new ConsoleController();

            cmisRepo = new CmisRepo(repoInfo, controller);
        }