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
 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);
 }
Exemplo 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;
            }
        }