示例#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();
        }
示例#2
0
文件: RoleInstance.cs 项目: RhysC/API
 internal RoleInstance(XElement element, Deployment parent)
 {
     element.HydrateObject(XmlNamespaces.WindowsAzure, this);
     Parent = parent;
 }
示例#3
0
 public Task PublishDeploymentAsync(Deployment deployment, Uri packageUrl, Deployment.CreationOptions options = null)
 {
     return(deployment.CreateAsync(this, packageUrl, options));
 }
示例#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);
 }
示例#5
0
 internal RoleInstance(XElement element, Deployment parent)
 {
     element.HydrateObject(XmlNamespaces.WindowsAzure, this);
     Parent = parent;
 }