Ejemplo 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;
     }
 }
Ejemplo n.º 2
0
 public static BuffSyncThreadProvider Instance()
 {
     if (null == s_instnce || !s_instnce.InitFlag)
     {
         lock (s_lockObj)
         {
             if (null == s_instnce || !s_instnce.InitFlag)
             {
                 s_instnce = new BuffSyncThreadProvider();
             }
         }
     }
     return(s_instnce);
 }
Ejemplo n.º 3
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;
            }
        }