/// <summary> /// 服务器初始化 /// </summary> public void Init() { config = new ConfigTimer(); config.Start(); //http = new HttpServer(7077); http.Start(); Const.users = new Dictionary <long, ClientSession>(); //var v = RedisUtil.Get("aaa"); //Console.WriteLine(v); }
/// <summary> /// 服务器初始化 /// </summary> public void Init() { cfg = new ConfigTimer(); cfg.Start(); redis = new RedisTimer(); redis.Start(); Const.users = new Dictionary <long, ClientSession>(); //var v = RedisUtil.Get("aaa"); //Console.WriteLine(v); }