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; } }