Ejemplo n.º 1
0
        public AzureDevOpsUnpack(string descriptor, IAzureDevOpsBuildClient buildClient, IZipExtractor extractor)
        {
            ParseDescriptor(descriptor);

            this.buildClient = buildClient;
            this.extractor   = extractor;
        }
Ejemplo n.º 2
0
        public FetchAzureDevOpsArtifact(string descriptor, IAzureDevOpsBuildClient buildClient, IZipExtractor extractor, IDownloader downloader, IDownloadProgress progressObserver)
        {
            ParseDescriptor(descriptor);

            this.buildClient      = buildClient;
            this.extractor        = extractor;
            this.downloader       = downloader;
            this.progressObserver = progressObserver;
        }
Ejemplo n.º 3
0
 /// <summary>
 /// Constructor
 /// </summary>
 /// <param name="releaseService">IReleaseService</param>
 /// <param name="deploymentService">IDeploymentService</param>
 /// <param name="azureDevOpsBuildClient">IAzureDevOpsBuildClient</param>
 public PipelineService(
     IReleaseService releaseService,
     IDeploymentService deploymentService,
     IAzureDevOpsBuildClient azureDevOpsBuildClient)
 {
     _releaseService         = releaseService;
     _deploymentService      = deploymentService;
     _azureDevOpsBuildClient = azureDevOpsBuildClient;
 }
        public FetchAzureDevOpsArtifact(string descriptor, IAzureDevOpsBuildClient buildClient, IZipExtractor extractor,
                                        IDownloader downloader, IOperationProgress progressObserver, IDeploymentContext deploymentContext,
                                        IFileSystemOperations fileSystemOperations, IOperationContext operationContext) :
            base(deploymentContext, fileSystemOperations, operationContext)
        {
            ParseDescriptor(descriptor);

            this.buildClient      = buildClient;
            this.extractor        = extractor;
            this.downloader       = downloader;
            this.progressObserver = progressObserver;
        }
Ejemplo n.º 5
0
 /// <summary>
 /// Constructor
 /// </summary>
 /// <param name="releaseRepository">Document db repository</param>
 /// <param name="httpContextAccessor">IHttpContextAccessor</param>
 /// <param name="azureDevOpsBuildClient">IAzureDevOpsBuildClient</param>
 /// <param name="azureDevOpsOptions">IOptionsMonitor of Type AzureDevOpsSettings</param>
 public ReleaseService(
     ReleaseRepository releaseRepository,
     IHttpContextAccessor httpContextAccessor,
     IAzureDevOpsBuildClient azureDevOpsBuildClient,
     IOptionsMonitor <AzureDevOpsSettings> azureDevOpsOptions)
 {
     _azureDevOpsSettings    = azureDevOpsOptions.CurrentValue;
     _releaseRepository      = releaseRepository;
     _azureDevOpsBuildClient = azureDevOpsBuildClient;
     _httpContext            = httpContextAccessor.HttpContext;
     _org = _httpContext.GetRouteValue("org")?.ToString();
     _app = _httpContext.GetRouteValue("app")?.ToString();
 }
Ejemplo n.º 6
0
 /// <summary>
 /// Constructor
 /// </summary>
 public DeploymentService(
     IOptionsMonitor <AzureDevOpsSettings> azureDevOpsOptions,
     IAzureDevOpsBuildClient azureDevOpsBuildClient,
     IHttpContextAccessor httpContextAccessor,
     IDeploymentRepository deploymentRepository,
     IReleaseRepository releaseRepository,
     IApplicationInformationService applicationInformationService)
 {
     _azureDevOpsBuildClient        = azureDevOpsBuildClient;
     _deploymentRepository          = deploymentRepository;
     _releaseRepository             = releaseRepository;
     _applicationInformationService = applicationInformationService;
     _azureDevOpsSettings           = azureDevOpsOptions.CurrentValue;
     _httpContext = httpContextAccessor.HttpContext;
     _org         = _httpContext.GetRouteValue("org")?.ToString();
     _app         = _httpContext.GetRouteValue("app")?.ToString();
 }
Ejemplo n.º 7
0
 public AzureDevOpsArtifact(IAzureDevOpsBuildClient buildClient, IFileSystemOperations fileSystemOperations, IOperationContext operationContext) : base(fileSystemOperations, operationContext)
 {
     this.buildClient = buildClient;
 }
Ejemplo n.º 8
0
 /// <summary>
 /// Constructor
 /// </summary>
 public PipelinesController(
     IAzureDevOpsBuildClient buildClient)
 {
     _buildClient = buildClient;
 }