public DeploymentTests() { Debug.WriteLine("DeploymentTests ctor - creating production test deployment"); Production = new Deployment("Test-Deployment1", DeploymentSlot.Production, new ServiceConfiguration(TestConstants.TestServiceConfig)); CloudService.PublishDeploymentAsync(Production, TestConstants.TestDeploymentPackageUri).Wait(); Debug.WriteLine("DeploymentTests ctor - creating staging test deployment"); Staging = new Deployment("Test-Deployment2", DeploymentSlot.Staging, TestConstants.TestServiceConfigString); CloudService.PublishDeploymentAsync(Staging, TestConstants.TestDeploymentPackageUri).Wait(); }
internal RoleInstance(XElement element, Deployment parent) { element.HydrateObject(XmlNamespaces.WindowsAzure, this); Parent = parent; }
public Task PublishDeploymentAsync(Deployment deployment, Uri packageUrl, Deployment.CreationOptions options = null) { return(deployment.CreateAsync(this, packageUrl, options)); }
async Task RetrieveDeployments() { var deployments = await CloudService.Deployments.AsTask(); _retrievedProduction = deployments.Single(d => d.Slot == DeploymentSlot.Production); _retrievedStaging = deployments.Single(d => d.Slot == DeploymentSlot.Staging); }