Esempio n. 1
0
 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));
 }
Esempio n. 2
0
 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();
 }
Esempio n. 3
0
        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;
        }