Exemple #1
0
 public GitHubHookController(
     IOptions <GitHubConnectionOptions> githubOptions,
     GitHubClientFactory gitHubClientFactory,
     ILogger <GitHubHookController> logger)
 {
     _githubOptions       = githubOptions;
     _logger              = logger;
     _gitHubClientFactory = gitHubClientFactory;
     _ensureLabels        = new Lazy <Task>(EnsureLabelsAsync);
 }
 public AzurePipelinesController(
     GitHubClientFactory gitHubClientFactory,
     IOptions <BuildMonitorOptions> options,
     ILogger <AzurePipelinesController> logger)
 {
     _gitHubClientFactory = gitHubClientFactory;
     _options             = options;
     _logger         = logger;
     _clientLazy     = new Lazy <AzureDevOpsClient>(BuildAzureDevOpsClient);
     _projectMapping = new Lazy <Task <Dictionary <string, string> > >(GetProjectMappingInternal);
 }