Exemple #1
0
        private bool TryInitializeDatabase()
        {
            if (Database.TestConnection())
            {
                bool updatedKey = this.security.UpdateDatabaseKey();
                if (updatedKey)
                {
                    return(true);
                }
            }

            Logging.Log.Fatal("SQL Persistence layer failed to load. Fall back to File persistence");
            Persistence.FallBackToPrimaryPersistence(this.Security);
            return(false);
        }