TestHttpClient.CreateAgentAsync(TestAgent) 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.
Sends REST based msg to Server for creating new entry of Test Agent. This API can be consumed in Registration Process.
public System.Threading.Tasks.Task<Microsoft.TeamFoundation.Test.WebApi.TestAgent> CreateAgentAsync(Microsoft.TeamFoundation.Test.WebApi.TestAgent testAgent);
abstract member CreateAgentAsync : Microsoft.TeamFoundation.Test.WebApi.TestAgent -> System.Threading.Tasks.Task<Microsoft.TeamFoundation.Test.WebApi.TestAgent>
override this.CreateAgentAsync : Microsoft.TeamFoundation.Test.WebApi.TestAgent -> System.Threading.Tasks.Task<Microsoft.TeamFoundation.Test.WebApi.TestAgent>
Parameters
- testAgent
- TestAgent
TestAgent object
Returns
TestAgent Object