Esempio n. 1
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);
        }
Esempio n. 2
0
 /// <summary>
 /// 服务器关闭
 /// </summary>
 public void Close()
 {
     redis.Stop(); redis = null;
     cfg.Stop(); cfg     = null;
 }
Esempio n. 3
0
 /// <summary>
 /// 服务器关闭
 /// </summary>
 public void Close()
 {
     redis.Stop(); redis   = null;
     config.Stop(); config = null;
     http.Stop(); http     = null;
 }