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);
}
}