aboutsummaryrefslogtreecommitdiff
path: root/src/WixToolset.Mba.Core/EventArgs.cs
diff options
context:
space:
mode:
Diffstat (limited to 'src/WixToolset.Mba.Core/EventArgs.cs')
-rw-r--r--src/WixToolset.Mba.Core/EventArgs.cs97
1 files changed, 70 insertions, 27 deletions
diff --git a/src/WixToolset.Mba.Core/EventArgs.cs b/src/WixToolset.Mba.Core/EventArgs.cs
index 56705769..7e7cbd11 100644
--- a/src/WixToolset.Mba.Core/EventArgs.cs
+++ b/src/WixToolset.Mba.Core/EventArgs.cs
@@ -226,22 +226,13 @@ namespace WixToolset.Mba.Core
226 } 226 }
227 227
228 /// <summary> 228 /// <summary>
229 /// Additional arguments used when detected a forward compatible bundle. 229 /// Event arguments for <see cref="IDefaultBootstrapperApplication.DetectForwardCompatibleBundle"/>
230 /// </summary> 230 /// </summary>
231 [Serializable] 231 [Serializable]
232 public class DetectForwardCompatibleBundleEventArgs : CancellableHResultEventArgs 232 public class DetectForwardCompatibleBundleEventArgs : CancellableHResultEventArgs
233 { 233 {
234 /// <summary> 234 /// <summary />
235 /// Creates a new instance of the <see cref="DetectUpdateBeginEventArgs"/> class. 235 public DetectForwardCompatibleBundleEventArgs(string bundleId, RelationType relationType, string bundleTag, bool perMachine, string version, bool missingFromCache, bool cancelRecommendation)
236 /// </summary>
237 /// <param name="bundleId">The identity of the forward compatible bundle.</param>
238 /// <param name="relationType">Relationship type for this forward compatible bundle.</param>
239 /// <param name="bundleTag">The tag of the forward compatible bundle.</param>
240 /// <param name="perMachine">Whether the detected forward compatible bundle is per machine.</param>
241 /// <param name="version">The version of the forward compatible bundle detected.</param>
242 /// <param name="cancelRecommendation">The cancel recommendation from the engine.</param>
243 /// <param name="ignoreBundleRecommendation">The ignore recommendation from the engine.</param>
244 public DetectForwardCompatibleBundleEventArgs(string bundleId, RelationType relationType, string bundleTag, bool perMachine, string version, bool cancelRecommendation, bool ignoreBundleRecommendation)
245 : base(cancelRecommendation) 236 : base(cancelRecommendation)
246 { 237 {
247 this.BundleId = bundleId; 238 this.BundleId = bundleId;
@@ -249,7 +240,7 @@ namespace WixToolset.Mba.Core
249 this.BundleTag = bundleTag; 240 this.BundleTag = bundleTag;
250 this.PerMachine = perMachine; 241 this.PerMachine = perMachine;
251 this.Version = version; 242 this.Version = version;
252 this.IgnoreBundle = ignoreBundleRecommendation; 243 this.MissingFromCache = missingFromCache;
253 } 244 }
254 245
255 /// <summary> 246 /// <summary>
@@ -278,9 +269,9 @@ namespace WixToolset.Mba.Core
278 public string Version { get; private set; } 269 public string Version { get; private set; }
279 270
280 /// <summary> 271 /// <summary>
281 /// Instructs the engine whether to use the forward compatible bundle. 272 /// Whether the forward compatible bundle is missing from the package cache.
282 /// </summary> 273 /// </summary>
283 public bool IgnoreBundle { get; set; } 274 public bool MissingFromCache { get; set; }
284 } 275 }
285 276
286 /// <summary> 277 /// <summary>
@@ -408,22 +399,13 @@ namespace WixToolset.Mba.Core
408 } 399 }
409 400
410 /// <summary> 401 /// <summary>
411 /// Additional arguments used when a related bundle has been detected for a bundle. 402 /// Event arguments for <see cref="IDefaultBootstrapperApplication.DetectRelatedBundle"/>
412 /// </summary> 403 /// </summary>
413 [Serializable] 404 [Serializable]
414 public class DetectRelatedBundleEventArgs : CancellableHResultEventArgs 405 public class DetectRelatedBundleEventArgs : CancellableHResultEventArgs
415 { 406 {
416 /// <summary> 407 /// <summary />
417 /// Creates a new instance of the <see cref="DetectRelatedBundleEventArgs"/> class. 408 public DetectRelatedBundleEventArgs(string productCode, RelationType relationType, string bundleTag, bool perMachine, string version, RelatedOperation operation, bool missingFromCache, bool cancelRecommendation)
418 /// </summary>
419 /// <param name="productCode">The identity of the related package bundle.</param>
420 /// <param name="relationType">Relationship type for this related bundle.</param>
421 /// <param name="bundleTag">The tag of the related package bundle.</param>
422 /// <param name="perMachine">Whether the detected bundle is per machine.</param>
423 /// <param name="version">The version of the related bundle detected.</param>
424 /// <param name="operation">The operation that will be taken on the detected bundle.</param>
425 /// <param name="cancelRecommendation">The recommendation from the engine.</param>
426 public DetectRelatedBundleEventArgs(string productCode, RelationType relationType, string bundleTag, bool perMachine, string version, RelatedOperation operation, bool cancelRecommendation)
427 : base(cancelRecommendation) 409 : base(cancelRecommendation)
428 { 410 {
429 this.ProductCode = productCode; 411 this.ProductCode = productCode;
@@ -432,6 +414,7 @@ namespace WixToolset.Mba.Core
432 this.PerMachine = perMachine; 414 this.PerMachine = perMachine;
433 this.Version = version; 415 this.Version = version;
434 this.Operation = operation; 416 this.Operation = operation;
417 this.MissingFromCache = missingFromCache;
435 } 418 }
436 419
437 /// <summary> 420 /// <summary>
@@ -463,6 +446,11 @@ namespace WixToolset.Mba.Core
463 /// Gets the operation that will be taken on the detected bundle. 446 /// Gets the operation that will be taken on the detected bundle.
464 /// </summary> 447 /// </summary>
465 public RelatedOperation Operation { get; private set; } 448 public RelatedOperation Operation { get; private set; }
449
450 /// <summary>
451 /// Whether the related bundle is missing from the package cache.
452 /// </summary>
453 public bool MissingFromCache { get; set; }
466 } 454 }
467 455
468 /// <summary> 456 /// <summary>
@@ -1010,6 +998,61 @@ namespace WixToolset.Mba.Core
1010 } 998 }
1011 999
1012 /// <summary> 1000 /// <summary>
1001 /// Event arguments for <see cref="IDefaultBootstrapperApplication.PlanForwardCompatibleBundle"/>
1002 /// </summary>
1003 [Serializable]
1004 public class PlanForwardCompatibleBundleEventArgs : CancellableHResultEventArgs
1005 {
1006 /// <summary />
1007 public PlanForwardCompatibleBundleEventArgs(string bundleId, RelationType relationType, string bundleTag, bool perMachine, string version, bool recommendedIgnoreBundle, bool cancelRecommendation, bool ignoreBundle)
1008 : base(cancelRecommendation)
1009 {
1010 this.BundleId = bundleId;
1011 this.RelationType = relationType;
1012 this.BundleTag = bundleTag;
1013 this.PerMachine = perMachine;
1014 this.Version = version;
1015 this.RecommendedIgnoreBundle = recommendedIgnoreBundle;
1016 this.IgnoreBundle = ignoreBundle;
1017 }
1018
1019 /// <summary>
1020 /// Gets the identity of the forward compatible bundle detected.
1021 /// </summary>
1022 public string BundleId { get; private set; }
1023
1024 /// <summary>
1025 /// Gets the relationship type of the forward compatible bundle.
1026 /// </summary>
1027 public RelationType RelationType { get; private set; }
1028
1029 /// <summary>
1030 /// Gets the tag of the forward compatible bundle.
1031 /// </summary>
1032 public string BundleTag { get; private set; }
1033
1034 /// <summary>
1035 /// Gets whether the forward compatible bundle is per machine.
1036 /// </summary>
1037 public bool PerMachine { get; private set; }
1038
1039 /// <summary>
1040 /// Gets the version of the forward compatible bundle.
1041 /// </summary>
1042 public string Version { get; private set; }
1043
1044 /// <summary>
1045 /// Gets the recommendation of whether the engine should use the forward compatible bundle.
1046 /// </summary>
1047 public bool RecommendedIgnoreBundle { get; set; }
1048
1049 /// <summary>
1050 /// Gets or sets whether the engine will use the forward compatible bundle.
1051 /// </summary>
1052 public bool IgnoreBundle { get; set; }
1053 }
1054
1055 /// <summary>
1013 /// Additional arguments used when the engine has begun installing the bundle. 1056 /// Additional arguments used when the engine has begun installing the bundle.
1014 /// </summary> 1057 /// </summary>
1015 [Serializable] 1058 [Serializable]