diff options
author | Sean Hall <r.sean.hall@gmail.com> | 2022-03-13 23:45:32 -0500 |
---|---|---|
committer | Sean Hall <r.sean.hall@gmail.com> | 2022-03-14 14:53:29 -0500 |
commit | 4cd1c4e06145434ca940ac828772dc47b9d9738e (patch) | |
tree | a754d685039173c63303dc6d0d8b1a2bf3ab506b /src/api/burn/WixToolset.Mba.Core/BootstrapperApplication.cs | |
parent | 89adb2e3cc232b11b28e5bdeccb0c522c8124a29 (diff) | |
download | wix-4cd1c4e06145434ca940ac828772dc47b9d9738e.tar.gz wix-4cd1c4e06145434ca940ac828772dc47b9d9738e.tar.bz2 wix-4cd1c4e06145434ca940ac828772dc47b9d9738e.zip |
Allow the BA to override the bundle relation type during plan.
Diffstat (limited to 'src/api/burn/WixToolset.Mba.Core/BootstrapperApplication.cs')
-rw-r--r-- | src/api/burn/WixToolset.Mba.Core/BootstrapperApplication.cs | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/src/api/burn/WixToolset.Mba.Core/BootstrapperApplication.cs b/src/api/burn/WixToolset.Mba.Core/BootstrapperApplication.cs index 1df992be..fd36cf26 100644 --- a/src/api/burn/WixToolset.Mba.Core/BootstrapperApplication.cs +++ b/src/api/burn/WixToolset.Mba.Core/BootstrapperApplication.cs | |||
@@ -89,6 +89,9 @@ namespace WixToolset.Mba.Core | |||
89 | public event EventHandler<PlanRelatedBundleEventArgs> PlanRelatedBundle; | 89 | public event EventHandler<PlanRelatedBundleEventArgs> PlanRelatedBundle; |
90 | 90 | ||
91 | /// <inheritdoc/> | 91 | /// <inheritdoc/> |
92 | public event EventHandler<PlanRelatedBundleTypeEventArgs> PlanRelatedBundleType; | ||
93 | |||
94 | /// <inheritdoc/> | ||
92 | public event EventHandler<PlanRollbackBoundaryEventArgs> PlanRollbackBoundary; | 95 | public event EventHandler<PlanRollbackBoundaryEventArgs> PlanRollbackBoundary; |
93 | 96 | ||
94 | /// <inheritdoc/> | 97 | /// <inheritdoc/> |
@@ -534,6 +537,19 @@ namespace WixToolset.Mba.Core | |||
534 | } | 537 | } |
535 | 538 | ||
536 | /// <summary> | 539 | /// <summary> |
540 | /// Called by the engine, raises the <see cref="PlanRelatedBundleType"/> event. | ||
541 | /// </summary> | ||
542 | /// <param name="args">Additional arguments for this event.</param> | ||
543 | protected virtual void OnPlanRelatedBundleType(PlanRelatedBundleTypeEventArgs args) | ||
544 | { | ||
545 | EventHandler<PlanRelatedBundleTypeEventArgs> handler = this.PlanRelatedBundleType; | ||
546 | if (null != handler) | ||
547 | { | ||
548 | handler(this, args); | ||
549 | } | ||
550 | } | ||
551 | |||
552 | /// <summary> | ||
537 | /// Called by the engine, raises the <see cref="PlanRollbackBoundary"/> event. | 553 | /// Called by the engine, raises the <see cref="PlanRollbackBoundary"/> event. |
538 | /// </summary> | 554 | /// </summary> |
539 | protected virtual void OnPlanRollbackBoundary(PlanRollbackBoundaryEventArgs args) | 555 | protected virtual void OnPlanRollbackBoundary(PlanRollbackBoundaryEventArgs args) |
@@ -1514,6 +1530,16 @@ namespace WixToolset.Mba.Core | |||
1514 | return args.HResult; | 1530 | return args.HResult; |
1515 | } | 1531 | } |
1516 | 1532 | ||
1533 | int IBootstrapperApplication.OnPlanRelatedBundleType(string wzBundleId, RelatedBundlePlanType recommendedType, ref RelatedBundlePlanType pRequestedType, ref bool fCancel) | ||
1534 | { | ||
1535 | PlanRelatedBundleTypeEventArgs args = new PlanRelatedBundleTypeEventArgs(wzBundleId, recommendedType, pRequestedType, fCancel); | ||
1536 | this.OnPlanRelatedBundleType(args); | ||
1537 | |||
1538 | pRequestedType = args.Type; | ||
1539 | fCancel = args.Cancel; | ||
1540 | return args.HResult; | ||
1541 | } | ||
1542 | |||
1517 | int IBootstrapperApplication.OnPlanRollbackBoundary(string wzRollbackBoundaryId, bool fRecommendedTransaction, ref bool fTransaction, ref bool fCancel) | 1543 | int IBootstrapperApplication.OnPlanRollbackBoundary(string wzRollbackBoundaryId, bool fRecommendedTransaction, ref bool fTransaction, ref bool fCancel) |
1518 | { | 1544 | { |
1519 | PlanRollbackBoundaryEventArgs args = new PlanRollbackBoundaryEventArgs(wzRollbackBoundaryId, fRecommendedTransaction, fTransaction, fCancel); | 1545 | PlanRollbackBoundaryEventArgs args = new PlanRollbackBoundaryEventArgs(wzRollbackBoundaryId, fRecommendedTransaction, fTransaction, fCancel); |