示例#1
0
        public async Task <StartDeploymentResponse> StartDeployment(string appId, string envId, string deploymentStrategyId, string cfgId, string versionNumber)
        {
            var deploymentResult = await _client.StartDeploymentAsync(new StartDeploymentRequest
            {
                ApplicationId          = appId,
                EnvironmentId          = envId,
                ConfigurationProfileId = cfgId,
                ConfigurationVersion   = versionNumber,
                DeploymentStrategyId   = deploymentStrategyId
            });

            Console.WriteLine($"Deployment for new configuration with Version: [{versionNumber}] started. Deployment number: [{deploymentResult.DeploymentNumber}]");

            return(deploymentResult);
        }