public GitVersionContextFactory(IConfigProvider configProvider, IRepositoryMetadataProvider repositoryMetadataProvider, IBranchConfigurationCalculator branchConfigurationCalculator, IOptions <Arguments> options)
 {
     this.configProvider                = configProvider ?? throw new ArgumentNullException(nameof(configProvider));
     this.repositoryMetadataProvider    = repositoryMetadataProvider ?? throw new ArgumentNullException(nameof(repositoryMetadataProvider));
     this.branchConfigurationCalculator = branchConfigurationCalculator ?? throw new ArgumentNullException(nameof(branchConfigurationCalculator));
     this.options = options ?? throw new ArgumentNullException(nameof(options));
 }
Example #2
0
 public GitVersionContextFactory(IConfigProvider configProvider, IRepositoryStore repositoryStore, IBranchConfigurationCalculator branchConfigurationCalculator, IOptions <GitVersionOptions> options)
 {
     this.configProvider  = configProvider.NotNull();
     this.repositoryStore = repositoryStore.NotNull();
     this.branchConfigurationCalculator = branchConfigurationCalculator.NotNull();
     this.options = options.NotNull();
 }
 public GitVersionContextFactory(IConfigProvider configProvider, IRepositoryMetadataProvider repositoryMetadataProvider, IBranchConfigurationCalculator branchConfigurationCalculator, IOptions <GitVersionOptions> options, ICurrentBuildAgent buildAgent, ILog log)
 {
     this.configProvider                = configProvider ?? throw new ArgumentNullException(nameof(configProvider));
     this.repositoryMetadataProvider    = repositoryMetadataProvider ?? throw new ArgumentNullException(nameof(repositoryMetadataProvider));
     this.branchConfigurationCalculator = branchConfigurationCalculator ?? throw new ArgumentNullException(nameof(branchConfigurationCalculator));
     this.options    = options ?? throw new ArgumentNullException(nameof(options));
     this.buildAgent = buildAgent;
     this.log        = log;
 }