Ejemplo n.º 1
0
        public static Backuper Create(string dbPath, string backupPath)
        {
            var result = new Backuper();

            result.DbPath     = dbPath;
            result.BackupPath = backupPath;
            result.GetLastBackupTime();
            return(result);
        }
Ejemplo n.º 2
0
        public static async Task InitAsync()
        {
            Activator = await Activator.Create(500, _snPath);

            SettingsService.Init(new JsonKLibSerializer(), _settingsPath);
            AppSettings = SettingsService.Load <AppSettings>();
            Backuper    = Backuper.Create(DbService.CurrentDbPath, _backupPath);

            Updater = Updater.Create(_updateURL);
            Updater.CheckUpdate.Execute().Subscribe();

            Feedbacker = new Feedbacker(Activator.MachineID.ToString());
        }