in src/Microsoft.NET.Sdk.Functions.MSBuild/Tasks/ZipDeploymentStatus.cs [67:78]
private async Task<DeployStatus> GetDeploymentStatusAsync(string deploymentUrl, string userName, string password, int retryCount, TimeSpan retryDelay, CancellationTokenSource cts)
{
var json = await InvokeGetRequestWithRetryAsync<JObject>(deploymentUrl, userName, password, retryCount, retryDelay, cts);
if (json != null
&& json.TryGetValue("status", out JToken statusString)
&& Enum.TryParse(statusString.Value<string>(), out DeployStatus result))
{
return result;
}
return DeployStatus.Unknown;
}