Send disableUpdate as query parameter (#2970)

This commit is contained in:
Luke Tomlinson
2023-11-13 10:19:42 -05:00
committed by GitHub
parent a4c57f2747
commit 3136ce3a71
7 changed files with 30 additions and 12 deletions

View File

@@ -463,6 +463,7 @@ namespace GitHub.DistributedTask.WebApi
string runnerVersion = null,
string os = null,
string architecture = null,
bool? disableUpdate = null,
object userState = null,
CancellationToken cancellationToken = default)
{
@@ -495,6 +496,11 @@ namespace GitHub.DistributedTask.WebApi
queryParams.Add("architecture", architecture);
}
if (disableUpdate != null)
{
queryParams.Add("disableUpdate", disableUpdate.Value.ToString().ToLower());
}
return SendAsync<TaskAgentMessage>(
httpMethod,
locationId,

View File

@@ -61,6 +61,7 @@ namespace GitHub.Actions.RunService.WebApi
TaskAgentStatus? status,
string os = null,
string architecture = null,
bool? disableUpdate = null,
CancellationToken cancellationToken = default
)
{
@@ -87,6 +88,11 @@ namespace GitHub.Actions.RunService.WebApi
queryParams.Add("architecture", architecture);
}
if (disableUpdate != null)
{
queryParams.Add("disableUpdate", disableUpdate.Value.ToString().ToLower());
}
var result = await SendAsync<TaskAgentMessage>(
new HttpMethod("GET"),
requestUri: requestUri,