Ejemplo n.º 1
0
        internal IComponentAgent GetAgent(Type agentAssemblyType = null)
        {
            if (cacheAgent != null && !HotfixMgr.DoingHotfix)
            {
                return(cacheAgent);
            }
            var agent = HotfixMgr.GetAgent <IComponentAgent>(this, agentAssemblyType);

            if (!HotfixMgr.DoingHotfix)
            {
                cacheAgent = agent;
            }
            return(agent);
        }
Ejemplo n.º 2
0
 ///<summary>清理缓存agent</summary>
 public void ClearCacheAgent()
 {
     cacheAgent = null;
 }