public void Remove() { ICacheManager _cache = cache; EntityManager.ClearAttributeData(_cache, plugin.name); WcfControllerManager.ClearAttributeData(_cache, plugin.name); }
public static void RemovePlugin(string plugname) { if (PluginDic.ContainsKey(plugname) == true) { ICacheManager _cache = PluginDic[plugname].cache; switch (AppGlobal.appType) { case AppType.Web: EntityManager.ClearAttributeData(_cache, plugname); WebControllerManager.ClearAttributeData(_cache, plugname); WebServicesManager.ClearAttributeData(_cache, plugname); break; case AppType.Winform: EntityManager.ClearAttributeData(_cache, plugname); WinformControllerManager.ClearAttributeData(_cache, plugname); break; case AppType.WCF: EntityManager.ClearAttributeData(_cache, plugname); WcfControllerManager.ClearAttributeData(_cache, plugname); break; } PluginDic.Remove(plugname); } }
public void Remove() { ICacheManager _cache = cache; switch (AppGlobal.appType) { case AppType.Web: EntityManager.ClearAttributeData(_cache, plugin.name); WebControllerManager.ClearAttributeData(_cache, plugin.name); WebServicesManager.ClearAttributeData(_cache, plugin.name); break; case AppType.Winform: //case AppType.WCFClient: EntityManager.ClearAttributeData(_cache, plugin.name); WinformControllerManager.ClearAttributeData(_cache, plugin.name); break; case AppType.WCF: EntityManager.ClearAttributeData(_cache, plugin.name); WcfControllerManager.ClearAttributeData(_cache, plugin.name); break; } }