Beispiel #1
0
        public override IPlugin GetPlugin(string url)
        {
            AppDomain         appDomain = GetBaseAppDomain();
            IPluginRunContext obj       = GetContext(appDomain);

            return(obj.GetPlugin(url));
        }
Beispiel #2
0
        public static IPlugin GetPlugin(IPluginContext parentProgram, string url)
        {
            if (!configs.ContainsKey(parentProgram))
            {
                //ShellUtils.ShowWarn("Please call LoadPlugin at first.");
                return(null);
            }

            IPluginRunContext theRunContext = GetPluginConfigItem(parentProgram, url).PluginRunContext;

            if (theRunContext == null)
            {
                return(null);
            }
            return(theRunContext.GetPlugin(url));
        }