aboutsummaryrefslogtreecommitdiff
path: root/src/api/burn/WixToolset.Mba.Core/BootstrapperApplication.cs
diff options
context:
space:
mode:
Diffstat (limited to 'src/api/burn/WixToolset.Mba.Core/BootstrapperApplication.cs')
-rw-r--r--src/api/burn/WixToolset.Mba.Core/BootstrapperApplication.cs25
1 files changed, 25 insertions, 0 deletions
diff --git a/src/api/burn/WixToolset.Mba.Core/BootstrapperApplication.cs b/src/api/burn/WixToolset.Mba.Core/BootstrapperApplication.cs
index d7dbf04c..b6fdca1e 100644
--- a/src/api/burn/WixToolset.Mba.Core/BootstrapperApplication.cs
+++ b/src/api/burn/WixToolset.Mba.Core/BootstrapperApplication.cs
@@ -86,6 +86,9 @@ namespace WixToolset.Mba.Core
86 public event EventHandler<PlanRelatedBundleEventArgs> PlanRelatedBundle; 86 public event EventHandler<PlanRelatedBundleEventArgs> PlanRelatedBundle;
87 87
88 /// <inheritdoc/> 88 /// <inheritdoc/>
89 public event EventHandler<PlanRollbackBoundaryEventArgs> PlanRollbackBoundary;
90
91 /// <inheritdoc/>
89 public event EventHandler<PlanPackageBeginEventArgs> PlanPackageBegin; 92 public event EventHandler<PlanPackageBeginEventArgs> PlanPackageBegin;
90 93
91 /// <inheritdoc/> 94 /// <inheritdoc/>
@@ -497,6 +500,18 @@ namespace WixToolset.Mba.Core
497 } 500 }
498 501
499 /// <summary> 502 /// <summary>
503 /// Called by the engine, raises the <see cref="PlanRollbackBoundary"/> event.
504 /// </summary>
505 protected virtual void OnPlanRollbackBoundary(PlanRollbackBoundaryEventArgs args)
506 {
507 EventHandler<PlanRollbackBoundaryEventArgs> handler = this.PlanRollbackBoundary;
508 if (null != handler)
509 {
510 handler(this, args);
511 }
512 }
513
514 /// <summary>
500 /// Called by the engine, raises the <see cref="PlanPackageBegin"/> event. 515 /// Called by the engine, raises the <see cref="PlanPackageBegin"/> event.
501 /// </summary> 516 /// </summary>
502 /// <param name="args">Additional arguments for this event.</param> 517 /// <param name="args">Additional arguments for this event.</param>
@@ -1378,6 +1393,16 @@ namespace WixToolset.Mba.Core
1378 return args.HResult; 1393 return args.HResult;
1379 } 1394 }
1380 1395
1396 int IBootstrapperApplication.OnPlanRollbackBoundary(string wzRollbackBoundaryId, bool fRecommendedTransaction, ref bool fTransaction, ref bool fCancel)
1397 {
1398 PlanRollbackBoundaryEventArgs args = new PlanRollbackBoundaryEventArgs(wzRollbackBoundaryId, fRecommendedTransaction, fTransaction, fCancel);
1399 this.OnPlanRollbackBoundary(args);
1400
1401 fTransaction = args.Transaction;
1402 fCancel = args.Cancel;
1403 return args.HResult;
1404 }
1405
1381 int IBootstrapperApplication.OnPlanPackageBegin(string wzPackageId, PackageState state, bool fCached, BOOTSTRAPPER_PACKAGE_CONDITION_RESULT installCondition, RequestState recommendedState, BOOTSTRAPPER_CACHE_TYPE recommendedCacheType, ref RequestState pRequestedState, ref BOOTSTRAPPER_CACHE_TYPE pRequestedCacheType, ref bool fCancel) 1406 int IBootstrapperApplication.OnPlanPackageBegin(string wzPackageId, PackageState state, bool fCached, BOOTSTRAPPER_PACKAGE_CONDITION_RESULT installCondition, RequestState recommendedState, BOOTSTRAPPER_CACHE_TYPE recommendedCacheType, ref RequestState pRequestedState, ref BOOTSTRAPPER_CACHE_TYPE pRequestedCacheType, ref bool fCancel)
1382 { 1407 {
1383 PlanPackageBeginEventArgs args = new PlanPackageBeginEventArgs(wzPackageId, state, fCached, installCondition, recommendedState, recommendedCacheType, pRequestedState, pRequestedCacheType, fCancel); 1408 PlanPackageBeginEventArgs args = new PlanPackageBeginEventArgs(wzPackageId, state, fCached, installCondition, recommendedState, recommendedCacheType, pRequestedState, pRequestedCacheType, fCancel);