static void Init()
 {
     try {
         SaveTask.OnSaveStarted += Cache_OnSaveStarted;
         SaveTask.OnSaveEnded   += Cache_OnSaveEnded;
         SaveTask.Initialize(WorldConfiguration.Instance.SaveInterval);
         DatabaseBackupProvider.Initialize(Environment.CurrentDirectory + "\\Backups\\");
         InitializeSave();
     }
     catch (Exception ex) {
         logger.Error(ex);
     }
 }
Exemple #2
0
 public static void Start()
 {
     SaveTask.OnSaveStarted += Cache_OnSaveStarted;
     SaveTask.OnSaveEnded   += Cache_OnSaveEnded;
     SaveTask.Initialize(ConfigurationManager.Instance.CyclicSaveInterval);
 }