Ejemplo n.º 1
0
        private void SetupServices()
        {
            SetupLog();
            DatabaseService.Initial(new MySQL_DatabaseService());
            DatabaseConfiguration databaseConfig;

            DatabaseConfiguration.Load("config/database.config", out databaseConfig);
            if (DatabaseService.Connect(databaseConfig.Hostname, databaseConfig.Username, databaseConfig.Password, databaseConfig.Database))
            {
                LogService.Info("DatabaseService Setup Successful!");
            }
        }