diff options
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 f277425e..b08e66c0 100644 --- a/src/api/burn/WixToolset.Mba.Core/BootstrapperApplication.cs +++ b/src/api/burn/WixToolset.Mba.Core/BootstrapperApplication.cs | |||
@@ -271,6 +271,9 @@ namespace WixToolset.Mba.Core | |||
271 | /// <inheritdoc/> | 271 | /// <inheritdoc/> |
272 | public event EventHandler<SetUpdateCompleteEventArgs> SetUpdateComplete; | 272 | public event EventHandler<SetUpdateCompleteEventArgs> SetUpdateComplete; |
273 | 273 | ||
274 | /// <inheritdoc/> | ||
275 | public event EventHandler<PlanRestoreRelatedBundleEventArgs> PlanRestoreRelatedBundle; | ||
276 | |||
274 | /// <summary> | 277 | /// <summary> |
275 | /// Entry point that is called when the bootstrapper application is ready to run. | 278 | /// Entry point that is called when the bootstrapper application is ready to run. |
276 | /// </summary> | 279 | /// </summary> |
@@ -1321,6 +1324,19 @@ namespace WixToolset.Mba.Core | |||
1321 | } | 1324 | } |
1322 | } | 1325 | } |
1323 | 1326 | ||
1327 | /// <summary> | ||
1328 | /// Called by the engine, raises the <see cref="PlanRestoreRelatedBundle"/> event. | ||
1329 | /// </summary> | ||
1330 | /// <param name="args">Additional arguments for this event.</param> | ||
1331 | protected virtual void OnPlanRestoreRelatedBundle(PlanRestoreRelatedBundleEventArgs args) | ||
1332 | { | ||
1333 | EventHandler<PlanRestoreRelatedBundleEventArgs> handler = this.PlanRestoreRelatedBundle; | ||
1334 | if (null != handler) | ||
1335 | { | ||
1336 | handler(this, args); | ||
1337 | } | ||
1338 | } | ||
1339 | |||
1324 | #region IBootstrapperApplication Members | 1340 | #region IBootstrapperApplication Members |
1325 | 1341 | ||
1326 | int IBootstrapperApplication.BAProc(int message, IntPtr pvArgs, IntPtr pvResults, IntPtr pvContext) | 1342 | int IBootstrapperApplication.BAProc(int message, IntPtr pvArgs, IntPtr pvResults, IntPtr pvContext) |
@@ -2042,6 +2058,16 @@ namespace WixToolset.Mba.Core | |||
2042 | return args.HResult; | 2058 | return args.HResult; |
2043 | } | 2059 | } |
2044 | 2060 | ||
2061 | int IBootstrapperApplication.OnPlanRestoreRelatedBundle(string wzBundleId, RequestState recommendedState, ref RequestState pRequestedState, ref bool fCancel) | ||
2062 | { | ||
2063 | PlanRestoreRelatedBundleEventArgs args = new PlanRestoreRelatedBundleEventArgs(wzBundleId, recommendedState, pRequestedState, fCancel); | ||
2064 | this.OnPlanRestoreRelatedBundle(args); | ||
2065 | |||
2066 | pRequestedState = args.State; | ||
2067 | fCancel = args.Cancel; | ||
2068 | return args.HResult; | ||
2069 | } | ||
2070 | |||
2045 | #endregion | 2071 | #endregion |
2046 | } | 2072 | } |
2047 | } | 2073 | } |