diff options
Diffstat (limited to 'src/api/burn/WixToolset.Mba.Core/EventArgs.cs')
-rw-r--r-- | src/api/burn/WixToolset.Mba.Core/EventArgs.cs | 27 |
1 files changed, 26 insertions, 1 deletions
diff --git a/src/api/burn/WixToolset.Mba.Core/EventArgs.cs b/src/api/burn/WixToolset.Mba.Core/EventArgs.cs index be113700..2b414d91 100644 --- a/src/api/burn/WixToolset.Mba.Core/EventArgs.cs +++ b/src/api/burn/WixToolset.Mba.Core/EventArgs.cs | |||
@@ -1930,12 +1930,13 @@ namespace WixToolset.Mba.Core | |||
1930 | public class CachePackageBeginEventArgs : CancellableHResultEventArgs | 1930 | public class CachePackageBeginEventArgs : CancellableHResultEventArgs |
1931 | { | 1931 | { |
1932 | /// <summary /> | 1932 | /// <summary /> |
1933 | public CachePackageBeginEventArgs(string packageId, int cachePayloads, long packageCacheSize, bool cancelRecommendation) | 1933 | public CachePackageBeginEventArgs(string packageId, int cachePayloads, long packageCacheSize, bool vital, bool cancelRecommendation) |
1934 | : base(cancelRecommendation) | 1934 | : base(cancelRecommendation) |
1935 | { | 1935 | { |
1936 | this.PackageId = packageId; | 1936 | this.PackageId = packageId; |
1937 | this.CachePayloads = cachePayloads; | 1937 | this.CachePayloads = cachePayloads; |
1938 | this.PackageCacheSize = packageCacheSize; | 1938 | this.PackageCacheSize = packageCacheSize; |
1939 | this.Vital = vital; | ||
1939 | } | 1940 | } |
1940 | 1941 | ||
1941 | /// <summary> | 1942 | /// <summary> |
@@ -1952,6 +1953,11 @@ namespace WixToolset.Mba.Core | |||
1952 | /// Gets the size on disk required by the specific package. | 1953 | /// Gets the size on disk required by the specific package. |
1953 | /// </summary> | 1954 | /// </summary> |
1954 | public long PackageCacheSize { get; private set; } | 1955 | public long PackageCacheSize { get; private set; } |
1956 | |||
1957 | /// <summary> | ||
1958 | /// If caching a package is not vital, then acquisition will be skipped unless the BA opts in through <see cref="IDefaultBootstrapperApplication.CachePackageNonVitalValidationFailure"/>. | ||
1959 | /// </summary> | ||
1960 | public bool Vital { get; private set; } | ||
1955 | } | 1961 | } |
1956 | 1962 | ||
1957 | /// <summary> | 1963 | /// <summary> |
@@ -2482,4 +2488,23 @@ namespace WixToolset.Mba.Core | |||
2482 | /// </summary> | 2488 | /// </summary> |
2483 | public string Version { get; private set; } | 2489 | public string Version { get; private set; } |
2484 | } | 2490 | } |
2491 | |||
2492 | /// <summary> | ||
2493 | /// Event arguments for <see cref="IDefaultBootstrapperApplication.CachePackageNonVitalValidationFailure"/> | ||
2494 | /// </summary> | ||
2495 | [Serializable] | ||
2496 | public class CachePackageNonVitalValidationFailureEventArgs : ActionEventArgs<BOOTSTRAPPER_CACHEPACKAGENONVITALVALIDATIONFAILURE_ACTION> | ||
2497 | { | ||
2498 | /// <summary /> | ||
2499 | public CachePackageNonVitalValidationFailureEventArgs(string packageId, int hrStatus, BOOTSTRAPPER_CACHEPACKAGENONVITALVALIDATIONFAILURE_ACTION recommendation, BOOTSTRAPPER_CACHEPACKAGENONVITALVALIDATIONFAILURE_ACTION action) | ||
2500 | : base(hrStatus, recommendation, action) | ||
2501 | { | ||
2502 | this.PackageId = packageId; | ||
2503 | } | ||
2504 | |||
2505 | /// <summary> | ||
2506 | /// Gets the identity of the package that was being validated. | ||
2507 | /// </summary> | ||
2508 | public string PackageId { get; private set; } | ||
2509 | } | ||
2485 | } | 2510 | } |