예제 #1
0
 public void BeginBuild(GGPDeploymentContent buildContentInfo)
 {
     using (var proxy = DeveloperToolServiceProxyFactory.CreateProxy())
     {
         this.TransactionID = proxy.BeginBuild(buildContentInfo.CreateBeginBuildRequest()).TransactionID;
     }
 }
예제 #2
0
 private GetInstallerContentResponse ReadInstallerContent(Guid installerId)
 {
     using (var proxy = DeveloperToolServiceProxyFactory.CreateProxy())
     {
         return(proxy.GetInstallerContent(new GetInstallerContentRequest()
         {
             InstallerId = installerId
         }));
     }
 }
예제 #3
0
 private void CreateBranchInApprovalSystem(RootBranchVersion sourceBranchVersion)
 {
     using (var proxy = DeveloperToolServiceProxyFactory.CreateProxy())
     {
         proxy.CreateNewBranch(new DeveloperToolService.CreateNewBranchRequest()
         {
             SourceBranchName = sourceBranchVersion.ToString(),
             TargetBranchName = (sourceBranchVersion + 1).ToString()
         });
     }
 }
예제 #4
0
        public void EndBuild(int changeSetID)
        {
            if (TransactionID == null)
            {
                throw new InvalidOperationException("You can't call End before calling the Begin");
            }

            using (var proxy = DeveloperToolServiceProxyFactory.CreateProxy())
            {
                proxy.EndBuild(new DeveloperToolService.EndBuildRequest()
                {
                    TransactionID = this.TransactionID.Value,
                    ChangeSetId   = changeSetID
                });
            }
        }
예제 #5
0
        public void DeleteComponents(IEnumerable <ILogicalComponent> components, RootBranchVersion branchName)
        {
            if (!components.Any())
            {
                throw new ArgumentException("No components to delete provided!");
            }

            var componentsUniqueIDs = DeleteAndGetComponentsUniqueIDs(components).ToArray();

            using (var proxy = DeveloperToolServiceProxyFactory.CreateProxy())
            {
                proxy.DeleteComponents(new DeveloperToolService.DeleteComponentsRequest()
                {
                    Branch = branchName.ToString(),
                    ComponentsUniqueIDs = componentsUniqueIDs
                });
            }
        }
예제 #6
0
        public IEnumerable <IProductionEnvironment> GetEnvironments()
        {
            if (_environments == null)
            {
                using (var proxy = DeveloperToolServiceProxyFactory.CreateProxy())
                {
                    _environments = proxy.GetProductionEnvironments()
                                    .Environments
                                    .Select(e => new ProductionEnvironment(e.Id,
                                                                           e.Name,
                                                                           _productionFolder.Environment(e.Name),
                                                                           _owner,
                                                                           _serviceLocator))
                                    .ToList();
                }
            }

            return(_environments);
        }
예제 #7
0
        private IEnumerable <IProductionInstaller> ReadInstallers()
        {
            using (var proxy = DeveloperToolServiceProxyFactory.CreateProxy())
            {
                var response = proxy.GetProductionInstallers(new DeveloperToolService.GetProductionInstallersRequest()
                {
                    EnvironmentId = _id,
                    BranchName    = _owner.Version.ToString()
                });

                return(response.Installers
                       .Select(e =>
                {
                    var installerVersion = new VersionNumber(e.Version);
                    return new ProductionInstaller(this._location.Installers.Installer(installerVersion),
                                                   e.Id,
                                                   installerVersion,
                                                   this,
                                                   _serviceLocator);
                })
                       .ToList());
            }
        }
예제 #8
0
        private IEnumerable <IQAInstaller> ReadInstallers()
        {
            var result = new List <IQAInstaller>();

            using (var proxy = DeveloperToolServiceProxyFactory.CreateProxy())
            {
                var response = proxy.GetQAInstallers(new DeveloperToolService.GetQAInstallersRequest()
                {
                    BranchName = Owner.Version.ToString()
                });

                foreach (var installer in response.Installers)
                {
                    var installerVersion = new Infra.Types.VersionNumber(installer.Version);
                    result.Add(new QAInstaller(Location.Installers.Installer(installerVersion),
                                               installer.Id,
                                               installerVersion,
                                               this.ServiceLocator));
                }
            }

            return(result);
        }