public static Dictionary <string, AppDomain> DomainDic; //程序域来动态管理插件 /// <summary> /// 加载所有插件 /// </summary> public static void LoadAllPlugin() { PluginDic = null; List <string> pflist = PluginSysManage.GetAllPluginFile(); for (int i = 0; i < pflist.Count; i++) { AddPlugin(AppGlobal.AppRootPath + pflist[i]); } }
public static Dictionary <string, AppDomain> DomainDic; //程序域来动态管理插件 /// <summary> /// 加载所有插件 /// </summary> public static void LoadAllPlugin() { PluginDic = new Dictionary <string, ModulePlugin>(); //RemotePluginDic = new List<RemotePlugin>(); List <string> pflist = PluginSysManage.GetAllPluginFile(); for (int i = 0; i < pflist.Count; i++) { AddPlugin(AppGlobal.AppRootPath + pflist[i]); } }
public static Dictionary <string, ModulePlugin> PluginDic;//本地插件 /// <summary> /// 加载所有插件 /// </summary> public static void LoadAllPlugin() { PluginDic = new Dictionary <string, ModulePlugin>(); List <string> pflist = PluginSysManage.GetAllPluginFile(); for (int i = 0; i < pflist.Count; i++) { //AddPlugin(pflist[i]); string filepath = AppGlobal.AppRootPath + pflist[i];//转为绝对路径 ModulePlugin mp = new ModulePlugin(); mp.appType = AppGlobal.appType; mp.LoadPlugin(filepath); mp.LoadAttribute(filepath); PluginDic.Add(mp.plugin.name, mp); } }