From 0d3d54992104288e9ee0c834d0b96e8502fd2d42 Mon Sep 17 00:00:00 2001 From: Rob Mensching Date: Thu, 11 Jan 2024 18:26:20 -0800 Subject: Move the BootstrapperApplication out of proc --- src/api/burn/WixToolset.Mba.Core/EventArgs.cs | 91 ++++++++++++++------------- 1 file changed, 48 insertions(+), 43 deletions(-) (limited to 'src/api/burn/WixToolset.Mba.Core/EventArgs.cs') diff --git a/src/api/burn/WixToolset.Mba.Core/EventArgs.cs b/src/api/burn/WixToolset.Mba.Core/EventArgs.cs index 4b7f2245..6506c840 100644 --- a/src/api/burn/WixToolset.Mba.Core/EventArgs.cs +++ b/src/api/burn/WixToolset.Mba.Core/EventArgs.cs @@ -197,6 +197,54 @@ namespace WixToolset.Mba.Core public int OverallPercentage { get; private set; } } + /// + /// Event arguments for . + /// + [Serializable] + public class CreateEventArgs : HResultEventArgs + { + /// + /// This class is for events raised by the engine. + /// It is not intended to be instantiated by user code. + /// + public CreateEventArgs(IEngine engine, IBootstrapperCommand command) + { + this.Engine = engine; + this.Command = command; + } + + /// + /// Engine running the application. + /// + public IEngine Engine { get; } + + /// + /// Command line arguments. + /// + public IBootstrapperCommand Command { get; } + } + + /// + /// Event arguments for . + /// + [Serializable] + public class DestroyEventArgs : HResultEventArgs + { + /// + /// This class is for events raised by the engine. + /// It is not intended to be instantiated by user code. + /// + public DestroyEventArgs(bool reload) + { + this.Reload = reload; + } + + /// + /// Bootstrapper application is being reloaded. + /// + public bool Reload { get; } + } + /// /// Event arguments for . /// @@ -2566,49 +2614,6 @@ namespace WixToolset.Mba.Core public string PayloadId { get; private set; } } - /// - /// EventArgs for . - /// - [Serializable] - public class SetUpdateBeginEventArgs : HResultEventArgs - { - /// - /// This class is for events raised by the engine. - /// It is not intended to be instantiated by user code. - /// - public SetUpdateBeginEventArgs() - { - } - } - - /// - /// Event arguments for - /// - [Serializable] - public class SetUpdateCompleteEventArgs : StatusEventArgs - { - /// - /// This class is for events raised by the engine. - /// It is not intended to be instantiated by user code. - /// - public SetUpdateCompleteEventArgs(int hrStatus, string previousPackageId, string newPackageId) - : base(hrStatus) - { - this.PreviousPackageId = previousPackageId; - this.NewPackageId = newPackageId; - } - - /// - /// Gets the identifier of the update package that was removed. - /// - public string PreviousPackageId { get; private set; } - - /// - /// Gets the identifier of the update package that was added. - /// - public string NewPackageId { get; private set; } - } - /// /// Event arguments for /// -- cgit v1.2.3-55-g6feb