private void Sync(SyncResetMode resetMode = SyncResetMode.None) { var services = new ServiceLocator(new DialogTaskHandler(this)); using var sync = new SyncIntegrationManager(SyncConfig.From(_config), services.FeedManager.GetFresh, services.Handler, _machineWide); sync.Sync(resetMode); }
private bool IsSyncConfigValid() { try { SyncConfig.From(Config.LoadSafe()); } catch (InvalidDataException) { return(false); } return(true); }