private DeploymentNames GetDeploymentNames() { var names = new DeploymentNames(); if (string.IsNullOrEmpty(this.ProductionDeploymentName)) { var prod = AzureRequest(RequestType.Get, null, "https://management.core.windows.net/{0}/services/hostedservices/{1}/deploymentslots/production", this.ServiceName); names.Production = (string)prod.Document.Root.Element(ns + "Name"); } else { names.Production = this.ProductionDeploymentName; } if (string.IsNullOrEmpty(this.SourceDeploymentName)) { var source = AzureRequest(RequestType.Get, null, "https://management.core.windows.net/{0}/services/hostedservices/{1}/deploymentslots/staging", this.ServiceName); names.Source = (string)source.Document.Root.Element(ns + "Name"); } else { names.Source = this.SourceDeploymentName; } return(names); }
private DeploymentNames GetDeploymentNames() { var names = new DeploymentNames(); if (string.IsNullOrEmpty(this.ProductionDeploymentName)) { var prod = AzureRequest(RequestType.Get, null, "https://management.core.windows.net/{0}/services/hostedservices/{1}/deploymentslots/production", this.ServiceName); names.Production = (string)prod.Document.Root.Element(ns + "Name"); } else { names.Production = this.ProductionDeploymentName; } if (string.IsNullOrEmpty(this.SourceDeploymentName)) { var source = AzureRequest(RequestType.Get, null, "https://management.core.windows.net/{0}/services/hostedservices/{1}/deploymentslots/staging", this.ServiceName); names.Source = (string)source.Document.Root.Element(ns + "Name"); } else { names.Source = this.SourceDeploymentName; } return names; }