public override void ExecuteRecursive([NotNull] TaskExecutionNode node)
        {
            var taskDictionary = CreateTaskDictionary(node);
            var listener       = new ReSharperRunListener(Server, taskDictionary);
            var runIntent      = CreateRunIntent(node);

            _cancellationTokenSource = runIntent.CancellationTokenSource;

            try
            {
                Evaluator.Run(runIntent, listener);
            }
            catch (Exception)
            {
                Server.SetTempFolderPath(runIntent.ShadowCopyPath);
                throw;
            }
        }
Example #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;
            }
        }