public IBootstrapperApplication Create(IBootstrapperEngine pEngine, ref Command command) { IEngine engine = new Engine(pEngine); IBootstrapperCommand bootstrapperCommand = command.GetBootstrapperCommand(); return(this.Create(engine, bootstrapperCommand)); }
public WixBA(IEngine engine, IBootstrapperCommand command) : base(engine) { this.Command = command; this.BAManifest = new BootstrapperApplicationData(); }
protected override IBootstrapperApplication Create(IEngine engine, IBootstrapperCommand bootstrapperCommand) { if (loadCount > 0) { engine.Log(LogLevel.Standard, $"Reloaded {loadCount} time(s)"); } ++loadCount; return(new EarliestCoreBA(engine)); }
protected override IBootstrapperApplication Create(IEngine engine, IBootstrapperCommand command) { return(new WixBA(engine, command)); }
/// <summary> /// Initializes test user experience. /// </summary> public TestBA(IEngine engine, IBootstrapperCommand bootstrapperCommand) : base(engine) { this.Command = bootstrapperCommand; this.wait = new ManualResetEvent(false); }
/// <summary> /// Initializes the native part of <see cref="WixToolset.Mba.Core"/>. /// Most users should inherit from <see cref="BaseBootstrapperApplicationFactory"/> instead of calling this method. /// </summary> /// <param name="pArgs">The args struct given by the engine when initially creating the BA.</param> /// <param name="engine">The bundle engine interface.</param> /// <param name="bootstrapperCommand">The context of the current run of the bundle.</param> public static void InitializeFromCreateArgs(IntPtr pArgs, out IEngine engine, out IBootstrapperCommand bootstrapperCommand) { Command pCommand = new Command { cbSize = Marshal.SizeOf(typeof(Command)) }; var pEngine = BalUtil.InitializeFromCreateArgs(pArgs, ref pCommand); engine = new Engine(pEngine); bootstrapperCommand = pCommand.GetBootstrapperCommand(); }
/// <summary> /// Called by <see cref="BaseBootstrapperApplicationFactory.Create(IntPtr, IntPtr)"/> to get the <see cref="IBootstrapperApplication"/>. /// </summary> /// <param name="engine">The bundle engine.</param> /// <param name="bootstrapperCommand">Command information passed from the engine for the BA to perform.</param> /// <returns>The <see cref="IBootstrapperApplication"/> for the bundle.</returns> protected abstract IBootstrapperApplication Create(IEngine engine, IBootstrapperCommand bootstrapperCommand);
public TestBA(IEngine engine, IBootstrapperCommand command) : base(engine) { this.Command = command; }
protected override IBootstrapperApplication Create(IEngine engine, IBootstrapperCommand bootstrapperCommand) { this.BA = new TestBA(engine, bootstrapperCommand); return(this.BA); }