diff options
Diffstat (limited to 'src/api/burn/WixToolset.Mba.Core/EventArgs.cs')
-rw-r--r-- | src/api/burn/WixToolset.Mba.Core/EventArgs.cs | 91 |
1 files changed, 48 insertions, 43 deletions
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 | |||
@@ -198,6 +198,54 @@ namespace WixToolset.Mba.Core | |||
198 | } | 198 | } |
199 | 199 | ||
200 | /// <summary> | 200 | /// <summary> |
201 | /// Event arguments for <see cref="IDefaultBootstrapperApplication.Create"/>. | ||
202 | /// </summary> | ||
203 | [Serializable] | ||
204 | public class CreateEventArgs : HResultEventArgs | ||
205 | { | ||
206 | /// <summary> | ||
207 | /// This class is for events raised by the engine. | ||
208 | /// It is not intended to be instantiated by user code. | ||
209 | /// </summary> | ||
210 | public CreateEventArgs(IEngine engine, IBootstrapperCommand command) | ||
211 | { | ||
212 | this.Engine = engine; | ||
213 | this.Command = command; | ||
214 | } | ||
215 | |||
216 | /// <summary> | ||
217 | /// Engine running the application. | ||
218 | /// </summary> | ||
219 | public IEngine Engine { get; } | ||
220 | |||
221 | /// <summary> | ||
222 | /// Command line arguments. | ||
223 | /// </summary> | ||
224 | public IBootstrapperCommand Command { get; } | ||
225 | } | ||
226 | |||
227 | /// <summary> | ||
228 | /// Event arguments for <see cref="IDefaultBootstrapperApplication.Destroy"/>. | ||
229 | /// </summary> | ||
230 | [Serializable] | ||
231 | public class DestroyEventArgs : HResultEventArgs | ||
232 | { | ||
233 | /// <summary> | ||
234 | /// This class is for events raised by the engine. | ||
235 | /// It is not intended to be instantiated by user code. | ||
236 | /// </summary> | ||
237 | public DestroyEventArgs(bool reload) | ||
238 | { | ||
239 | this.Reload = reload; | ||
240 | } | ||
241 | |||
242 | /// <summary> | ||
243 | /// Bootstrapper application is being reloaded. | ||
244 | /// </summary> | ||
245 | public bool Reload { get; } | ||
246 | } | ||
247 | |||
248 | /// <summary> | ||
201 | /// Event arguments for <see cref="IDefaultBootstrapperApplication.Startup"/>. | 249 | /// Event arguments for <see cref="IDefaultBootstrapperApplication.Startup"/>. |
202 | /// </summary> | 250 | /// </summary> |
203 | [Serializable] | 251 | [Serializable] |
@@ -2567,49 +2615,6 @@ namespace WixToolset.Mba.Core | |||
2567 | } | 2615 | } |
2568 | 2616 | ||
2569 | /// <summary> | 2617 | /// <summary> |
2570 | /// EventArgs for <see cref="IDefaultBootstrapperApplication.SetUpdateBegin"/>. | ||
2571 | /// </summary> | ||
2572 | [Serializable] | ||
2573 | public class SetUpdateBeginEventArgs : HResultEventArgs | ||
2574 | { | ||
2575 | /// <summary> | ||
2576 | /// This class is for events raised by the engine. | ||
2577 | /// It is not intended to be instantiated by user code. | ||
2578 | /// </summary> | ||
2579 | public SetUpdateBeginEventArgs() | ||
2580 | { | ||
2581 | } | ||
2582 | } | ||
2583 | |||
2584 | /// <summary> | ||
2585 | /// Event arguments for <see cref="IDefaultBootstrapperApplication.SetUpdateComplete"/> | ||
2586 | /// </summary> | ||
2587 | [Serializable] | ||
2588 | public class SetUpdateCompleteEventArgs : StatusEventArgs | ||
2589 | { | ||
2590 | /// <summary> | ||
2591 | /// This class is for events raised by the engine. | ||
2592 | /// It is not intended to be instantiated by user code. | ||
2593 | /// </summary> | ||
2594 | public SetUpdateCompleteEventArgs(int hrStatus, string previousPackageId, string newPackageId) | ||
2595 | : base(hrStatus) | ||
2596 | { | ||
2597 | this.PreviousPackageId = previousPackageId; | ||
2598 | this.NewPackageId = newPackageId; | ||
2599 | } | ||
2600 | |||
2601 | /// <summary> | ||
2602 | /// Gets the identifier of the update package that was removed. | ||
2603 | /// </summary> | ||
2604 | public string PreviousPackageId { get; private set; } | ||
2605 | |||
2606 | /// <summary> | ||
2607 | /// Gets the identifier of the update package that was added. | ||
2608 | /// </summary> | ||
2609 | public string NewPackageId { get; private set; } | ||
2610 | } | ||
2611 | |||
2612 | /// <summary> | ||
2613 | /// Event arguments for <see cref="IDefaultBootstrapperApplication.PlanRestoreRelatedBundle"/> | 2618 | /// Event arguments for <see cref="IDefaultBootstrapperApplication.PlanRestoreRelatedBundle"/> |
2614 | /// </summary> | 2619 | /// </summary> |
2615 | [Serializable] | 2620 | [Serializable] |