Add missing parameter EnvironmentId

This commit is contained in:
Petr Janík 2023-08-30 12:02:57 +02:00 коммит произвёл Florian Hopfner
Родитель cfe5671fb2
Коммит 9ceffe9735
1 изменённых файлов: 2 добавлений и 2 удалений

Просмотреть файл

@ -705,7 +705,7 @@ namespace LCS
internal async Task<bool> StartStopDeployment(CloudHostedInstance instance, string action) internal async Task<bool> StartStopDeployment(CloudHostedInstance instance, string action)
{ {
var parameters = $"{action}=&ActivityId={instance.ActivityId}&ProductName={WebUtility.UrlEncode(instance.ProductName)}&TopologyName={instance.TopologyName}&TopologyInstanceId={instance.InstanceId}&AzureSubscriptionId={instance.AzureSubscriptionId}&EnvironmentGroup=0"; var parameters = $"{action}=&ActivityId={instance.ActivityId}&ProductName={WebUtility.UrlEncode(instance.ProductName)}&TopologyName={instance.TopologyName}&TopologyInstanceId={instance.InstanceId}&AzureSubscriptionId={instance.AzureSubscriptionId}&EnvironmentGroup=0&EnvironmentId={instance.EnvironmentId}";
using (_stringContent = new StringContent(parameters, Encoding.UTF8, "application/x-www-form-urlencoded")) using (_stringContent = new StringContent(parameters, Encoding.UTF8, "application/x-www-form-urlencoded"))
{ {
SetRequestVerificationToken($"{LcsUrl}/V2"); SetRequestVerificationToken($"{LcsUrl}/V2");
@ -904,4 +904,4 @@ namespace LCS
} }
} }
} }
} }