Himall商城更新插件列表\获取插件程序集文件\ 深复制IPlugin
/// <summary>
/// 更新插件列表
/// </summary>
/// <param name="plugin"></param>
static void UpdatePluginList(PluginInfo plugin)
{
foreach (var pluginType in plugin.PluginTypes)
IntalledPlugins[pluginType].Add(plugin);
}
static void RemovePlugin(PluginInfo plugin)
{
foreach (var pluginType in plugin.PluginTypes)
IntalledPlugins[pluginType].Remove(plugin);
}
/// <summary>
/// 获取插件程序集文件
/// </summary>
/// <param name="pluginDirectory">插件所在目录</param>
/// <returns></returns>
static IEnumerable<string> GetPluginFiles(string pluginDirectory)
{
if (!System.IO.Dire