aboutsummaryrefslogtreecommitdiff
path: root/src/WixToolset.Mba.Core/EventArgs.cs
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/WixToolset.Mba.Core/EventArgs.cs70
1 files changed, 44 insertions, 26 deletions
diff --git a/src/WixToolset.Mba.Core/EventArgs.cs b/src/WixToolset.Mba.Core/EventArgs.cs
index e64f6d2c..8ef8af14 100644
--- a/src/WixToolset.Mba.Core/EventArgs.cs
+++ b/src/WixToolset.Mba.Core/EventArgs.cs
@@ -617,22 +617,18 @@ namespace WixToolset.Mba.Core
617 } 617 }
618 618
619 /// <summary> 619 /// <summary>
620 /// Additional arguments used when the detection for a specific package has completed. 620 /// Additional arguments for <see cref="IDefaultBootstrapperApplication.DetectPackageComplete"/>.
621 /// </summary> 621 /// </summary>
622 [Serializable] 622 [Serializable]
623 public class DetectPackageCompleteEventArgs : StatusEventArgs 623 public class DetectPackageCompleteEventArgs : StatusEventArgs
624 { 624 {
625 /// <summary> 625 /// <summary />
626 /// Creates a new instance of the <see cref="DetectPackageCompleteEventArgs"/> class. 626 public DetectPackageCompleteEventArgs(string packageId, int hrStatus, PackageState state, bool cached)
627 /// </summary>
628 /// <param name="packageId">The identity of the package detected.</param>
629 /// <param name="hrStatus">The return code of the operation.</param>
630 /// <param name="state">The state of the specified package.</param>
631 public DetectPackageCompleteEventArgs(string packageId, int hrStatus, PackageState state)
632 : base(hrStatus) 627 : base(hrStatus)
633 { 628 {
634 this.PackageId = packageId; 629 this.PackageId = packageId;
635 this.State = state; 630 this.State = state;
631 this.Cached = cached;
636 } 632 }
637 633
638 /// <summary> 634 /// <summary>
@@ -644,6 +640,11 @@ namespace WixToolset.Mba.Core
644 /// Gets the state of the specified package. 640 /// Gets the state of the specified package.
645 /// </summary> 641 /// </summary>
646 public PackageState State { get; private set; } 642 public PackageState State { get; private set; }
643
644 /// <summary>
645 /// Gets whether any part of the package is cached.
646 /// </summary>
647 public bool Cached { get; private set; }
647 } 648 }
648 649
649 /// <summary> 650 /// <summary>
@@ -725,23 +726,18 @@ namespace WixToolset.Mba.Core
725 [Serializable] 726 [Serializable]
726 public class PlanPackageBeginEventArgs : CancellableHResultEventArgs 727 public class PlanPackageBeginEventArgs : CancellableHResultEventArgs
727 { 728 {
728 /// <summary> 729 /// <summary />
729 /// 730 public PlanPackageBeginEventArgs(string packageId, PackageState currentState, bool cached, BOOTSTRAPPER_PACKAGE_CONDITION_RESULT installCondition, RequestState recommendedState, BOOTSTRAPPER_CACHE_TYPE recommendedCacheType, RequestState state, BOOTSTRAPPER_CACHE_TYPE cacheType, bool cancelRecommendation)
730 /// </summary>
731 /// <param name="packageId"></param>
732 /// <param name="currentState"></param>
733 /// <param name="installCondition"></param>
734 /// <param name="recommendedState"></param>
735 /// <param name="state"></param>
736 /// <param name="cancelRecommendation"></param>
737 public PlanPackageBeginEventArgs(string packageId, PackageState currentState, bool installCondition, RequestState recommendedState, RequestState state, bool cancelRecommendation)
738 : base(cancelRecommendation) 731 : base(cancelRecommendation)
739 { 732 {
740 this.PackageId = packageId; 733 this.PackageId = packageId;
741 this.CurrentState = currentState; 734 this.CurrentState = currentState;
735 this.Cached = cached;
742 this.InstallCondition = installCondition; 736 this.InstallCondition = installCondition;
743 this.RecommendedState = recommendedState; 737 this.RecommendedState = recommendedState;
738 this.RecommendedCacheType = recommendedCacheType;
744 this.State = state; 739 this.State = state;
740 this.CacheType = cacheType;
745 } 741 }
746 742
747 /// <summary> 743 /// <summary>
@@ -755,9 +751,14 @@ namespace WixToolset.Mba.Core
755 public PackageState CurrentState { get; private set; } 751 public PackageState CurrentState { get; private set; }
756 752
757 /// <summary> 753 /// <summary>
754 /// Gets whether any part of the package is cached.
755 /// </summary>
756 public bool Cached { get; private set; }
757
758 /// <summary>
758 /// Gets the evaluated result of the package's install condition. 759 /// Gets the evaluated result of the package's install condition.
759 /// </summary> 760 /// </summary>
760 public bool InstallCondition { get; private set; } 761 public BOOTSTRAPPER_PACKAGE_CONDITION_RESULT InstallCondition { get; private set; }
761 762
762 /// <summary> 763 /// <summary>
763 /// Gets the recommended requested state for the package. 764 /// Gets the recommended requested state for the package.
@@ -765,9 +766,19 @@ namespace WixToolset.Mba.Core
765 public RequestState RecommendedState { get; private set; } 766 public RequestState RecommendedState { get; private set; }
766 767
767 /// <summary> 768 /// <summary>
769 /// The authored cache type of the package.
770 /// </summary>
771 public BOOTSTRAPPER_CACHE_TYPE RecommendedCacheType { get; private set; }
772
773 /// <summary>
768 /// Gets or sets the requested state for the package. 774 /// Gets or sets the requested state for the package.
769 /// </summary> 775 /// </summary>
770 public RequestState State { get; set; } 776 public RequestState State { get; set; }
777
778 /// <summary>
779 /// Gets or sets the requested cache type for the package.
780 /// </summary>
781 public BOOTSTRAPPER_CACHE_TYPE CacheType { get; set; }
771 } 782 }
772 783
773 /// <summary> 784 /// <summary>
@@ -936,17 +947,14 @@ namespace WixToolset.Mba.Core
936 [Serializable] 947 [Serializable]
937 public class PlannedPackageEventArgs : HResultEventArgs 948 public class PlannedPackageEventArgs : HResultEventArgs
938 { 949 {
939 /// <summary> 950 /// <summary />
940 /// 951 public PlannedPackageEventArgs(string packageId, ActionState execute, ActionState rollback, bool cache, bool uncache)
941 /// </summary>
942 /// <param name="packageId"></param>
943 /// <param name="execute"></param>
944 /// <param name="rollback"></param>
945 public PlannedPackageEventArgs(string packageId, ActionState execute, ActionState rollback)
946 { 952 {
947 this.PackageId = packageId; 953 this.PackageId = packageId;
948 this.Execute = execute; 954 this.Execute = execute;
949 this.Rollback = rollback; 955 this.Rollback = rollback;
956 this.Cache = cache;
957 this.Uncache = uncache;
950 } 958 }
951 959
952 /// <summary> 960 /// <summary>
@@ -963,6 +971,16 @@ namespace WixToolset.Mba.Core
963 /// Gets the planned rollback action. 971 /// Gets the planned rollback action.
964 /// </summary> 972 /// </summary>
965 public ActionState Rollback { get; private set; } 973 public ActionState Rollback { get; private set; }
974
975 /// <summary>
976 /// Gets whether the package will be cached.
977 /// </summary>
978 public bool Cache { get; private set; }
979
980 /// <summary>
981 /// Gets whether the package will be removed from the package cache.
982 /// </summary>
983 public bool Uncache { get; private set; }
966 } 984 }
967 985
968 /// <summary> 986 /// <summary>