Пример #1
0
        protected void onPluginUnLoaded(PluginUnLoadedEventArgs <T> e)
        {
            PluginUnLoadedEventHandler <T> handler = PluginUnLoaded;

            if (handler != null)
            {
                handler(this, e);
            }
        }
Пример #2
0
        private void UnLoadDll(string fileName)
        {
            foreach (T plugin in PluginsInDll(fileName))
            {
                this.Plugins.Remove(plugin.PluginName);

                PluginListChangedEventArgs <T> ec = new PluginListChangedEventArgs <T>(Plugins);
                this.onPluginListChanged(ec);

                PluginUnLoadedEventArgs <T> e = new PluginUnLoadedEventArgs <T>(plugin);
                this.onPluginUnLoaded(e);
            }
        }