public IStartupService RegisterPlugin(IStartupPlugin plugin) { Check.MustNotNull(plugin, "plugin"); this.MustNotStarted(); _plugins.Add(plugin); return this; }
static public int Start(IntPtr l) { try { IStartupPlugin self = (IStartupPlugin)checkSelf(l); UnityEngine.GameObject a1; checkType(l, 2, out a1); UnityEngine.MonoBehaviour a2; checkType(l, 3, out a2); self.Start(a1, a2); pushValue(l, true); return(1); } catch (Exception e) { return(error(l, e)); } }
static public int Call(IntPtr l) { try { IStartupPlugin self = (IStartupPlugin)checkSelf(l); System.String a1; checkType(l, 2, out a1); System.Object[] a2; checkParams(l, 3, out a2); self.Call(a1, a2); pushValue(l, true); return(1); } catch (Exception e) { return(error(l, e)); } }
static void Main() { Application.EnableVisualStyles(); Application.SetCompatibleTextRenderingDefault(false); // Load & run startup plugins foreach (string file in Directory.GetFiles(Application.StartupPath + "\\Plugins\\Startup", "*.dll")) { IStartupPlugin startupPlugin = PluginHandler.LoadPlugin <IStartupPlugin>(file); if (startupPlugin != null) { startupPlugin.Run(); } } Application.Run(new Form1()); }
public AutomationProfile Run(IStartupPlugin plugin) { _startupLoader.Add(plugin); return(this); }
public AutomationProfile Run(IStartupPlugin plugin) { _startupLoader.Add(plugin); return this; }