Exemplo n.º 1
0
 private BuffPoolCore()
 {
     try
     {
         s_buffSync    = BuffSyncThreadProvider.Instance();
         s_memBuffPool = new MemCacheClient(MEMPrefixBuffPool, MEMTickSecondsBuffPool);
         this.InitFlag = true;
     }
     catch (Exception ex)
     {
         LogHelper.Insert(ex, "BuffPoolCore:Init");
         this.InitFlag = false;
     }
 }
Exemplo n.º 2
0
        private BuffDataCore()
        {
            try
            {
                s_buffSync = BuffSyncThreadProvider.Instance();
                if (ShareUtil.IsCross)
                {
                    s_memBuffMember = new MemCacheClient(MEMPrefixBuffMember, 30);
                }
                else
                {
                    s_memBuffMember = new MemCacheClient(MEMPrefixBuffMember, MEMTickSecondsBuffMember);
                }


                this.InitFlag = true;
            }
            catch (Exception ex)
            {
                SystemlogMgr.Error("BuffDataCore:Init", ex);
                this.InitFlag = false;
            }
        }