private void OnButtonClick(object sender, EventArgs e, Type plugin) { List <Type> typeInList = new List <Type>(); typeInList.Add(plugin); PluginInvoker.Invoke(typeInList); }
static void Main() { List <Type> plugins = PluginLoader.GetPlugins(); PluginInvoker.Invoke(plugins); Application.EnableVisualStyles(); Application.SetCompatibleTextRenderingDefault(false); Application.Run(new MainForm(plugins)); }
public static void RunPlugin(PluginDefinitionSelection plugin, EventHandler <PluginNotificationEventArgs> notificationEvent = null, EventHandler <PluginProgressChangedEventArgs> progressChangedEvent = null) { int contextAccountID = Constants.DefaultAccountID; if (!plugin.Arguments.Contains(Plugin.ContextAccountIDArgumentKey)) { contextAccountID = int.Parse(ConfigurationManager.AppSettings["ContextAccountID"]); } PluginInvoker.Run(plugin, contextAccountID, notificationEvent, progressChangedEvent); }
private static void Main(string[] args) { var plugins = GetPluginDefinitionsToRun(); PluginInvoker.RunBatch(plugins); }