private static void InvokeTask(ITargetBuilderBounce bounce, IBounceCommand command, string name, IObsoleteTask task) { using (var targetScope = bounce.TaskScope(task, command, name)) { bounce.Invoke(command, task); targetScope.TaskSucceeded(); } }
private static void InvokeTask(ITargetBuilderBounce bounce, IBounceCommand command, string name, ITask task) { using (var targetScope = bounce.TaskScope(task, command, name)) { bounce.Invoke(command, task); targetScope.TaskSucceeded(); } }
private void InvokeAndLog(IObsoleteTask task, IBounceCommand command) { using (var taskScope = Bounce.TaskScope(task, command, null)) { try { task.Describe(Bounce.DescriptionOutput); task.Invoke(command, Bounce); taskScope.TaskSucceeded(); } catch (BounceException) { throw; } catch (Exception e) { throw new TaskException(task, e); } } }