public override void ExecuteRecursive (TaskExecutionNode node)
    {
      var runIntent = CreateRunIntent(node);
      var taskDictionary = node.DescendantsAndSelf(x => x.Children)
          .Select(x => x.RemoteTask)
          .Cast<Task>()
          .ToDictionary(x => x.Identity.Absolute, x => x);
      var listener = new ReSharperRunListener(Server, taskDictionary);

      try
      {
        var result = Evaluator.Run(runIntent, listener);
      }
      catch (Exception)
      {
        Server.SetTempFolderPath(runIntent.ShadowCopyPath);
        throw;
      }
    }
Beispiel #2
0
        public override void ExecuteRecursive(TaskExecutionNode node)
        {
            var runIntent      = CreateRunIntent(node);
            var taskDictionary = node.DescendantsAndSelf(x => x.Children)
                                 .Select(x => x.RemoteTask)
                                 .Cast <Task>()
                                 .ToDictionary(x => x.Identity.Absolute, x => x);
            var listener = new ReSharperRunListener(Server, taskDictionary);

            try
            {
                var result = Evaluator.Run(runIntent, listener);
            }
            catch (Exception)
            {
                Server.SetTempFolderPath(runIntent.ShadowCopyPath);
                throw;
            }
        }
 private static Dictionary <IIdentity, Task> CreateTaskDictionary(TaskExecutionNode node)
 {
     return(node.DescendantsAndSelf(x => x.Children)
            .Select(x => x.RemoteTask).Cast <Task>()
            .ToDictionary(x => x.Identity));
 }