public static void RegisterFunction(Type t) { if (t.TryGetAttribute <AutoRegisterAttribute>()) { RegistrationHelper.Register(t); } }
private void button1_Click(object sender, EventArgs e) { if (RegistrationHelper.Register(this, ref message)) { MessageBox.Show(message); Application.Restart(); } else { MessageBox.Show(message); return; } }
public static void Register(Type t) { RegistrationHelper.Register(t); }
private void RegisterPlugins() { var assemblyPath = "Workflows.dll"; RegistrationHelper.Register <global::Plugins.Plugin, CustomWorkflowActivity>("Workflows", assemblyPath, PluginConverter.Convert, PluginConverter.Convert); }