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

OnSyncComplete() public method

Called when sync completes.
public OnSyncComplete ( bool syncFull ) : void
syncFull bool
return void
        public void OnSyncComplete(bool syncFull)
        {
            if (syncFull)
            {
                remote_timer.Start();
                last_sync = DateTime.Now;
            }
            else
            {
                last_partial_sync = DateTime.Now;
            }

            if (Watcher.GetChangeCount() > 0)
            {
                //Watcher was stopped (due to error) so clear and restart sync
                Watcher.Clear();
            }

            Watcher.EnableRaisingEvents = true;
            Watcher.EnableEvent = true;
            Logger.Info((syncFull ? "Full" : "Partial") + " Sync Complete: " + LocalPath);

            // Save last sync
            RepoInfo.LastSuccessedSync = DateTime.Now;
            // TODO write it to database.
        }