Esempio n. 1
0
        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();
        }
Esempio n. 2
0
 internal RoleInstance(XElement element, Deployment parent)
 {
     element.HydrateObject(XmlNamespaces.WindowsAzure, this);
     Parent = parent;
 }
Esempio n. 3
0
 public Task PublishDeploymentAsync(Deployment deployment, Uri packageUrl, Deployment.CreationOptions options = null)
 {
     return(deployment.CreateAsync(this, packageUrl, options));
 }
Esempio n. 4
0
 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);
 }
Esempio n. 5
0
 internal RoleInstance(XElement element, Deployment parent)
 {
     element.HydrateObject(XmlNamespaces.WindowsAzure, this);
     Parent = parent;
 }