public void Apply(IList <IProjectUpgradeAction> actions)
 {
     try
     {
         Context.BeginUpgrade(() =>
         {
             foreach (var action in actions)
             {
                 action.Apply(Context);
                 AppliedActions.Add(action);
             }
         });
     }
     catch (Exception e)
     {
         throw;
     }
 }
Beispiel #2
0
 public virtual void Apply(BaseCsharpFileUpgradeContext context, IList <ICsharpCodeUpgradeAction> actions)
 {
     try
     {
         Context = context;
         Context.BeginUpgrade(() =>
         {
             foreach (var action in actions)
             {
                 action.Apply(Context);
                 AppliedActions.Add(action);
             }
         });
     }
     catch (Exception e)
     {
         throw;
     }
 }
Beispiel #3
0
 public bool CheckApplicableToDetail <T> (IList <T> operationDetails, OperationDetail operationDetail, AppliedActions maskApplied = AppliedActions.All) where T : OperationDetail
 {
     return((operationDetail.AppliedPriceRules & maskApplied) == AppliedActions.None &&
            conditions.All(condition => condition.CheckApplicableToDetail(operationDetails, operationDetail)));
 }