예제 #1
0
        /// <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);
        }
예제 #2
0
        /// <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);
        }