TaskAgentHttpClientBase.CreateAgentSessionAsync Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
[Preview API]
public virtual System.Threading.Tasks.Task<Microsoft.TeamFoundation.DistributedTask.WebApi.TaskAgentSession> CreateAgentSessionAsync(int poolId, Microsoft.TeamFoundation.DistributedTask.WebApi.TaskAgentSession session, object userState = null, System.Threading.CancellationToken cancellationToken = null);
abstract member CreateAgentSessionAsync : int * Microsoft.TeamFoundation.DistributedTask.WebApi.TaskAgentSession * obj * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.TeamFoundation.DistributedTask.WebApi.TaskAgentSession>
override this.CreateAgentSessionAsync : int * Microsoft.TeamFoundation.DistributedTask.WebApi.TaskAgentSession * obj * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.TeamFoundation.DistributedTask.WebApi.TaskAgentSession>
Parameters
- poolId
- Int32
- session
- TaskAgentSession
- userState
- Object
- cancellationToken
- CancellationToken
The cancellation token to cancel operation.