Example #1
0
 public TreeService(IWebHostEnvironment environment, GitHubTreeProvider gitHubTreeProvider, AzureDevOpsTreeProvider azureTreeProvider, ILogger <TreeService> logger)
 {
     _environment        = environment;
     _githubTreeProvider = gitHubTreeProvider;
     _azureTreeProvider  = azureTreeProvider;
     _logger             = logger;
 }
Example #2
0
 public TreeService(IWebHostEnvironment environment, GitHubTreeProvider gitHubTreeProvider, AzureDevOpsTreeProvider azureTreeProvider, ILogger <TreeService> logger)
 {
     _environment   = environment;
     _treeProviders = new TreeProvider[] { gitHubTreeProvider, azureTreeProvider };
     _logger        = logger;
 }