Microsoft.WindowsAzure.Management.CloudService.Model.GetDeploymentStatus.GetStatus C# (CSharp) Метод

GetStatus() публичный Метод

public GetStatus ( string serviceName, string slot ) : string
serviceName string
slot string
Результат string
        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;
        }