public TrackReleaseBranchesVersionStrategy(IRepositoryMetadataProvider repositoryMetadataProvider, Lazy <GitVersionContext> versionContext) : base(versionContext) { this.repositoryMetadataProvider = repositoryMetadataProvider ?? throw new ArgumentNullException(nameof(repositoryMetadataProvider)); releaseVersionStrategy = new VersionInBranchNameVersionStrategy(repositoryMetadataProvider, versionContext); taggedCommitVersionStrategy = new TaggedCommitVersionStrategy(repositoryMetadataProvider, versionContext); }
public TrackReleaseBranchesVersionStrategy(IRepositoryStore repositoryStore, Lazy <GitVersionContext> versionContext) : base(versionContext) { this.repositoryStore = repositoryStore ?? throw new ArgumentNullException(nameof(repositoryStore)); releaseVersionStrategy = new VersionInBranchNameVersionStrategy(repositoryStore, versionContext); taggedCommitVersionStrategy = new TaggedCommitVersionStrategy(repositoryStore, versionContext); }
public TrackReleaseBranchesVersionStrategy(ILog log) { releaseVersionStrategy = new VersionInBranchNameVersionStrategy(); taggedCommitVersionStrategy = new TaggedCommitVersionStrategy(log); }