public Task <TaskAgentJobRequest> FinishAgentRequestAsync(int poolId, long requestId, Guid lockToken, DateTime finishTime, TaskResult result, CancellationToken cancellationToken = default(CancellationToken))
        {
            if (HostContext.RunMode == RunMode.Local)
            {
                return(Task.FromResult <TaskAgentJobRequest>(null));
            }

            CheckConnection();
            return(_taskAgentClient.FinishAgentRequestAsync(poolId, requestId, lockToken, finishTime, result, cancellationToken: cancellationToken));
        }
Esempio n. 2
0
 public Task <TaskAgentJobRequest> FinishAgentRequestAsync(int poolId, long requestId, Guid lockToken, DateTime finishTime, TaskResult result, CancellationToken cancellationToken = default(CancellationToken))
 {
     CheckConnection(RunnerConnectionType.JobRequest);
     return(_requestTaskAgentClient.FinishAgentRequestAsync(poolId, requestId, lockToken, finishTime, result, cancellationToken: cancellationToken));
 }