コード例 #1
0
 public RepositoryMediator(IRemoteRepositoryState repositoryState, IBranchSettings branchSettings, IBranchIterationMediator branchIteration, IGitServiceApi gitApi, IOrchestrationActions actions)
 {
     this.repositoryState = repositoryState;
     this.branchSettings  = branchSettings;
     this.branchIteration = branchIteration;
     this.gitApi          = gitApi;
     this.actions         = actions;
 }
コード例 #2
0
 public IntegrateBranchesOrchestration(IGitServiceApi gitServiceApi, IUnitOfWorkFactory workFactory, IRepositoryOrchestration orchestration, IIntegrationNamingMediator integrationNaming, IBranchSettings settings, IRepositoryMediator repository, IBranchIterationMediator branchIteration)
 {
     this.gitServiceApi     = gitServiceApi;
     this.workFactory       = workFactory;
     this.orchestration     = orchestration;
     this.integrationNaming = integrationNaming;
     this.settings          = settings;
     this.repository        = repository;
     this.branchIteration   = branchIteration;
 }
コード例 #3
0
 public Internal(IGitCli cli, IRepositoryMediator repository, IBranchSettings settings, IBranchIterationMediator branchIteration, IUnitOfWorkFactory unitOfWorkFactory, IRepositoryOrchestration orchestration, IOptions <GitRepositoryOptions> options, string releaseCandidateBranch, string serviceLineBranch, string tagName, bool autoConsolidate)
 {
     this.cli                    = cli;
     this.repository             = repository;
     this.settings               = settings;
     this.branchIteration        = branchIteration;
     this.unitOfWorkFactory      = unitOfWorkFactory;
     this.orchestration          = orchestration;
     this.isReadOnly             = options.Value.ReadOnly;
     this.releaseCandidateBranch = releaseCandidateBranch;
     this.serviceLineBranch      = serviceLineBranch;
     this.tagName                = tagName;
     this.autoConsolidate        = autoConsolidate;
 }
コード例 #4
0
 public MergeDownstreamActionProcess(IGitCli cli, IGitServiceApi gitServiceApi, IUnitOfWorkFactory workFactory, IRepositoryOrchestration orchestration, IRepositoryMediator repository, IntegrateBranchesOrchestration integrateBranches, IBranchIterationMediator branchIteration, string downstreamBranch, IOptions <GitRepositoryOptions> options, IMergeStrategyManager strategyManager)
 {
     this.cli                   = cli;
     this.gitServiceApi         = gitServiceApi;
     this.integrateBranches     = integrateBranches;
     this.repository            = repository;
     this.orchestration         = orchestration;
     this.branchIteration       = branchIteration;
     this.downstreamBranchGroup = downstreamBranch;
     this.detailsTask           = repository.GetBranchDetails(downstreamBranch).FirstAsync().ToTask();
     this.latestBranchName      = detailsTask.ContinueWith(task => repository.LatestBranchName(task.Result).FirstOrDefaultAsync().ToTask()).Unwrap();
     this.strategyTask          = detailsTask.ContinueWith(task => strategyManager.GetMergeStrategy(task.Result));
     this.isReadOnly            = options.Value.ReadOnly;
     this.workFactory           = workFactory;
 }