Пример #1
0
        public virtual bool LoadPluginDlls()
        {
            string baseFolder = Path.Combine(PluginLocatorBase.GetBasePluginFolder(), ConfigItem.GetContainerName());

            foreach (PluginDll dll in ConfigItem.PluginDlls)
            {
                if (dll.Name.ToLower().EndsWith(".zip"))
                {
                    continue;
                }

                bool found = LoadPluginDll(dll.Name, baseFolder);
                if (!found)
                {
                    return(false);
                }
            }
            return(true);
        }