protected void onPluginUnLoaded(PluginUnLoadedEventArgs <T> e) { PluginUnLoadedEventHandler <T> handler = PluginUnLoaded; if (handler != null) { handler(this, e); } }
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); } }