public void Remove()
        {
            ICacheManager _cache = cache;

            EntityManager.ClearAttributeData(_cache, plugin.name);
            WcfControllerManager.ClearAttributeData(_cache, plugin.name);
        }
Beispiel #2
0
        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);
            }
        }
Beispiel #3
0
        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;
            }
        }