public void Apply(IList <IProjectUpgradeAction> actions) { try { Context.BeginUpgrade(() => { foreach (var action in actions) { action.Apply(Context); AppliedActions.Add(action); } }); } catch (Exception e) { throw; } }
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; } }
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))); }