public string GetStatus(string serviceName, string slot)
{
Deployment deployment = new Deployment();
try
{
InvokeInOperationContext(() =>
{
deployment = this.RetryCall<Deployment>(s => this.Channel.GetDeploymentBySlot(s, serviceName, slot));
});
}
catch (ServiceManagementClientException ex)
{
if(ex.HttpStatus == HttpStatusCode.NotFound)
{
throw new EndpointNotFoundException(string.Format(Resources.ServiceSlotDoesNotExist, slot, serviceName));
}
}
return deployment.Status;
}