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