Example #1
0
File: Core.cs Project: AKllX/Gemini
 private static void startDatabaseConnection()
 {
     //Iniciando Conexão ao Banco de Dados
     DatabaseManager = new DatabaseManager(ConnectionStringBuilder.BuildMySQL(db, host));
     if (!DatabaseManager.IsConnected())
     {
         Log.Fatal("Erro ao iniciar banco de dados");
         Console.ReadLine();
         Environment.Exit(1);
     }
     else
     {
         Log.InfoFormat("MYSQL - {0}@{1} Conectado", db, host);
     }
 }
Example #2
0
        public static void Initialize()
        {
            Console.WriteLine("Iniciando Database Manager");
            m_DatabaseManager = new DatabaseManager(ConnectionStringBuilder.BuildMySQL(db, host));
            Console.WriteLine("Iniciando Channel Manager");
            m_ChannelManager = new ChannelManager();
            Console.WriteLine("Iniciando Radio Manager");
            m_RadioManager = new RadioManager();
            SessionManager.Initialize();

            m_ChannelManager.LoadAllChannels();
            foreach (Channel c in m_ChannelManager.Channels)
            {
                SessionManager.MakeConnection(c);
            }

            //SessionManager.InitCommuncations();
        }