public void BeginBuild(GGPDeploymentContent buildContentInfo) { using (var proxy = DeveloperToolServiceProxyFactory.CreateProxy()) { this.TransactionID = proxy.BeginBuild(buildContentInfo.CreateBeginBuildRequest()).TransactionID; } }
private GetInstallerContentResponse ReadInstallerContent(Guid installerId) { using (var proxy = DeveloperToolServiceProxyFactory.CreateProxy()) { return(proxy.GetInstallerContent(new GetInstallerContentRequest() { InstallerId = installerId })); } }
private void CreateBranchInApprovalSystem(RootBranchVersion sourceBranchVersion) { using (var proxy = DeveloperToolServiceProxyFactory.CreateProxy()) { proxy.CreateNewBranch(new DeveloperToolService.CreateNewBranchRequest() { SourceBranchName = sourceBranchVersion.ToString(), TargetBranchName = (sourceBranchVersion + 1).ToString() }); } }
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 }); } }
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 }); } }
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); }
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()); } }
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); }