static void Main(string[] args) { AppDomain.CurrentDomain.UnhandledException += new UnhandledExceptionEventHandler(onError); Log.Texte("", "-------------------- Account Cacher -------------------", ConsoleColor.DarkRed); // Loading all configs files ConfigMgr.LoadConfigs(); Config = ConfigMgr.GetConfig <AccountConfigs>(); // Loading log level from file if (!Log.InitLog(Config.LogLevel, "AccountCacher")) { ConsoleMgr.WaitAndExit(2000); } AccountMgr.Database = DBManager.Start(Config.AccountDB.Total(), Config.AccountDB.ConnectionType, "Accounts", Config.AccountDB.Database); if (AccountMgr.Database == null) { ConsoleMgr.WaitAndExit(2000); } Server = new RpcServer(Config.RpcInfo.RpcClientStartingPort, 1); if (!Server.Start(Config.RpcInfo.RpcIp, Config.RpcInfo.RpcPort)) { ConsoleMgr.WaitAndExit(2000); } AcctMgr = Server.GetLocalObject <AccountMgr>(); AcctMgr.LoadRealms(); ConsoleMgr.Start(); }
static void Main(string[] args) { AppDomain.CurrentDomain.UnhandledException += new UnhandledExceptionEventHandler(onError); // Loading all configs files ConfigMgr.LoadConfigs(); Config = ConfigMgr.GetConfig<AccountConfigs>(); // Loading log level from file if (!Log.InitLog(Config.LogLevel, "AccountCacher")) ConsoleMgr.WaitAndExit(2000); AccountMgr.Database = DBManager.Start(Config.AccountDB.Total(), ConnectionType.DATABASE_MYSQL, "Accounts"); if (AccountMgr.Database == null) ConsoleMgr.WaitAndExit(2000); Server = new RpcServer(Config.RpcInfo.RpcClientStartingPort, 1); if (!Server.Start(Config.RpcInfo.RpcIp, Config.RpcInfo.RpcPort)) ConsoleMgr.WaitAndExit(2000); AcctMgr = Server.GetLocalObject<AccountMgr>(); AcctMgr.LoadRealms(); ConsoleMgr.Start(); }
static void Main(string[] args) { AppDomain.CurrentDomain.UnhandledException += new UnhandledExceptionEventHandler(onError); Log.Texte("", "-------------------- Account Cacher -------------------", ConsoleColor.DarkRed); Log.Texte("", " █ █░ ▄▄▄ ██▀███ ▓█████ ███▄ ▄███▓ █ ██ ", ConsoleColor.Red); Log.Texte("", "▓█░ █ ░█░▒████▄ ▓██ ▒ ██▒▓█ ▀ ▓██▒▀█▀ ██▒ ██ ▓██▒", ConsoleColor.Red); Log.Texte("", "▒█░ █ ░█ ▒██ ▀█▄ ▓██ ░▄█ ▒▒███ ▓██ ▓██░▓██ ▒██░", ConsoleColor.Red); Log.Texte("", "░█░ █ ░█ ░██▄▄▄▄██ ▒██▀▀█▄ ▒▓█ ▄ ▒██ ▒██ ▓▓█ ░██░", ConsoleColor.Red); Log.Texte("", "░░██▒██▓ ▓█ ▓██▒░██▓ ▒██▒░▒████▒▒██▒ ░██▒▒▒█████▓ ", ConsoleColor.Red); Log.Texte("", "░ ▓░▒ ▒ ▒▒ ▓▒█░░ ▒▓ ░▒▓░░░ ▒░ ░░ ▒░ ░ ░░▒▓▒ ▒ ▒ ", ConsoleColor.Red); Log.Texte("", " ▒ ░ ░ ▒ ▒▒ ░ ░▒ ░ ▒░ ░ ░ ░░ ░ ░░░▒░ ░ ░ ", ConsoleColor.Red); Log.Texte("", " ░ ░ ░ ▒ ░░ ░ ░ ░ ░ ░░░ ░ ░ ", ConsoleColor.Red); Log.Texte("", " ░ ░ ░ ░ ░ ░ ░ ░ ", ConsoleColor.Red); Log.Texte("", "-------------------http://WarEmu.com-------------------", ConsoleColor.DarkRed); // Loading all configs files ConfigMgr.LoadConfigs(); Config = ConfigMgr.GetConfig <AccountConfigs>(); // Loading log level from file if (!Log.InitLog(Config.LogLevel, "AccountCacher")) { ConsoleMgr.WaitAndExit(2000); } AccountMgr.Database = DBManager.Start(Config.AccountDB.Total(), ConnectionType.DATABASE_MYSQL, "Accounts"); if (AccountMgr.Database == null) { ConsoleMgr.WaitAndExit(2000); } Server = new RpcServer(Config.RpcInfo.RpcClientStartingPort, 1); if (!Server.Start(Config.RpcInfo.RpcIp, Config.RpcInfo.RpcPort)) { ConsoleMgr.WaitAndExit(2000); } AcctMgr = Server.GetLocalObject <AccountMgr>(); AcctMgr.LoadRealms(); ConsoleMgr.Start(); }
static void Main(string[] args) { AppDomain.CurrentDomain.UnhandledException += new UnhandledExceptionEventHandler(onError); Log.Texte("", "-------------------------------", ConsoleColor.DarkBlue); Log.Texte("", " _____ _____ ", ConsoleColor.Cyan); Log.Texte("", " /\\ | __ \\ / ____|", ConsoleColor.Cyan); Log.Texte("", " / \\ | |__) | (___ ", ConsoleColor.Cyan); Log.Texte("", " / /\\ \\ | ___/ \\___ \\ ", ConsoleColor.Cyan); Log.Texte("", " / ____ \\| | ____) |", ConsoleColor.Cyan); Log.Texte("", "/_/ \\_\\_| |_____/ Warhammer", ConsoleColor.Cyan); Log.Texte("", "http://AllPrivateServer.com", ConsoleColor.DarkCyan); Log.Texte("", "-------------------------------", ConsoleColor.DarkBlue); // Loading all configs files ConfigMgr.LoadConfigs(); Config = ConfigMgr.GetConfig <AccountConfigs>(); // Loading log level from file if (!Log.InitLog(Config.LogLevel, "AccountCacher")) { ConsoleMgr.WaitAndExit(2000); } AccountMgr.Database = DBManager.Start(Config.AccountDB.Total(), ConnectionType.DATABASE_MYSQL, "Accounts"); if (AccountMgr.Database == null) { ConsoleMgr.WaitAndExit(2000); } Server = new RpcServer(Config.RpcInfo.RpcClientStartingPort, 1); if (!Server.Start(Config.RpcInfo.RpcIp, Config.RpcInfo.RpcPort)) { ConsoleMgr.WaitAndExit(2000); } AcctMgr = Server.GetLocalObject <AccountMgr>(); AcctMgr.LoadRealms(); ConsoleMgr.Start(); }
static void Main(string[] args) { AppDomain.CurrentDomain.UnhandledException += new UnhandledExceptionEventHandler(onError); Log.Texte("", "-------------------- Account Cacher -------------------", ConsoleColor.DarkRed); Log.Texte("", " █ █░ ▄▄▄ ██▀███ ▓█████ ███▄ ▄███▓ █ ██ ", ConsoleColor.Red); Log.Texte("", "▓█░ █ ░█░▒████▄ ▓██ ▒ ██▒▓█ ▀ ▓██▒▀█▀ ██▒ ██ ▓██▒", ConsoleColor.Red); Log.Texte("", "▒█░ █ ░█ ▒██ ▀█▄ ▓██ ░▄█ ▒▒███ ▓██ ▓██░▓██ ▒██░", ConsoleColor.Red); Log.Texte("", "░█░ █ ░█ ░██▄▄▄▄██ ▒██▀▀█▄ ▒▓█ ▄ ▒██ ▒██ ▓▓█ ░██░", ConsoleColor.Red); Log.Texte("", "░░██▒██▓ ▓█ ▓██▒░██▓ ▒██▒░▒████▒▒██▒ ░██▒▒▒█████▓ ", ConsoleColor.Red); Log.Texte("", "░ ▓░▒ ▒ ▒▒ ▓▒█░░ ▒▓ ░▒▓░░░ ▒░ ░░ ▒░ ░ ░░▒▓▒ ▒ ▒ ", ConsoleColor.Red); Log.Texte("", " ▒ ░ ░ ▒ ▒▒ ░ ░▒ ░ ▒░ ░ ░ ░░ ░ ░░░▒░ ░ ░ ", ConsoleColor.Red); Log.Texte("", " ░ ░ ░ ▒ ░░ ░ ░ ░ ░ ░░░ ░ ░ ", ConsoleColor.Red); Log.Texte("", " ░ ░ ░ ░ ░ ░ ░ ░ ", ConsoleColor.Red); Log.Texte("", "-------------------http://WarEmu.com-------------------", ConsoleColor.DarkRed); // Loading all configs files ConfigMgr.LoadConfigs(); Config = ConfigMgr.GetConfig<AccountConfigs>(); // Loading log level from file if (!Log.InitLog(Config.LogLevel, "AccountCacher")) ConsoleMgr.WaitAndExit(2000); AccountMgr.Database = DBManager.Start(Config.AccountDB.Total(), ConnectionType.DATABASE_MYSQL, "Accounts"); if (AccountMgr.Database == null) ConsoleMgr.WaitAndExit(2000); Server = new RpcServer(Config.RpcInfo.RpcClientStartingPort, 1); if (!Server.Start(Config.RpcInfo.RpcIp, Config.RpcInfo.RpcPort)) ConsoleMgr.WaitAndExit(2000); AcctMgr = Server.GetLocalObject<AccountMgr>(); AcctMgr.LoadRealms(); ConsoleMgr.Start(); }