CmisSync.Lib.Sync.CmisRepo.SynchronizedFolder.SyncInNotBackground C# (CSharp) Méthode

SyncInNotBackground() public méthode

Sync on the current thread.
public SyncInNotBackground ( bool syncFull ) : void
syncFull bool
Résultat void
            public void SyncInNotBackground(bool syncFull)
            {
                if (IsSyncing())
                {
                    Logger.Debug("Sync already running in background: " + repoInfo.TargetDirectory);
                    return;
                }

                try
                {
                    Sync(syncFull);
                }
                catch (CmisPermissionDeniedException e)
                {
                    repo.OnSyncError(new PermissionDeniedException("Authentication failed.", e));
                }
                catch (Exception e)
                {
                    repo.OnSyncError(new BaseException(e));
                }
                finally
                {
                    SyncComplete(syncFull);
                }
            }