public GitVersionApp(IHostApplicationLifetime applicationLifetime, IGitVersionExecutor gitVersionExecutor, ILog log, IOptions <Arguments> options) { this.options = options ?? throw new ArgumentNullException(nameof(options)); this.applicationLifetime = applicationLifetime ?? throw new ArgumentNullException(nameof(applicationLifetime)); this.gitVersionExecutor = gitVersionExecutor ?? throw new ArgumentNullException(nameof(gitVersionExecutor)); this.log = log ?? throw new ArgumentNullException(nameof(log)); }
public GitVersionApp(IHostApplicationLifetime applicationLifetime, IGitVersionExecutor gitVersionExecutor, ILog log, IOptions <GitVersionOptions> options) { this.options = options.NotNull(); this.applicationLifetime = applicationLifetime.NotNull(); this.gitVersionExecutor = gitVersionExecutor.NotNull(); this.log = log.NotNull(); }
public GitVersionApp(IHostApplicationLifetime applicationLifetime, IGitVersionExecutor gitVersionExecutor, ILog log, IOptions <Arguments> options) { this.arguments = options.Value; this.applicationLifetime = applicationLifetime ?? throw new ArgumentNullException(nameof(applicationLifetime)); this.gitVersionExecutor = gitVersionExecutor ?? throw new ArgumentNullException(nameof(gitVersionExecutor)); log.Verbosity = arguments.Verbosity; }