Ejemplo n.º 1
0
        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);
        }
Ejemplo n.º 2
0
 private bool IsSyncConfigValid()
 {
     try
     {
         SyncConfig.From(Config.LoadSafe());
     }
     catch (InvalidDataException)
     {
         return(false);
     }
     return(true);
 }