/// <inheritdoc /> public void TaskOutput(FacadeTask task, string text, FacadeTaskOutputType outputType) { try { server.TaskOutput(GetRemoteTask(task), text, FacadeUtils.ToTaskOutputType(outputType)); } catch (Exception ex) { throw ServerExceptionUtils.Wrap(ex); } }
/// <inheritdoc /> public void TaskFinished(FacadeTask task, string message, FacadeTaskResult result) { try { server.TaskFinished(GetRemoteTask(task), message, FacadeUtils.ToTaskResult(result)); } catch (Exception ex) { throw ServerExceptionUtils.Wrap(ex); } }
sealed public override void ExecuteRecursive(TaskExecutionNode node) { AdapterFacadeTaskServer facadeTaskServer = new AdapterFacadeTaskServer(Server); AdapterFacadeLogger facadeLogger = new AdapterFacadeLogger(); FacadeTaskExecutorConfiguration facadeTaskExecutorConfiguration = new FacadeTaskExecutorConfiguration() { ShadowCopy = TaskExecutor.Configuration.ShadowCopy, AssemblyFolder = TaskExecutor.Configuration.AssemblyFolder }; FacadeTask facadeTask = facadeTaskServer.MapTasks(node); executeResult = FacadeUtils.ToTaskResult(Execute(facadeTaskServer, facadeLogger, facadeTask, facadeTaskExecutorConfiguration)); }