Esempio n. 1
0
    public Task <RepositoryReference> GetRepositoryReferenceAsync(RepositoryReference repository)
    {
        repository = repository.ParseUrl();

        return(repository.Provider switch
        {
            RepositoryProvider.DevOps => DevOpsService.GetRepositoryReferenceAsync(repository),
            RepositoryProvider.GitHub => github.GetRepositoryReferenceAsync(repository),
            _ => throw new NotSupportedException($"Repository provider {repository.Provider} is not supported.")
        });
 public DevOpsesController(LogService logService, DevOpsService service)
 {
     _service = service;
     _logService = logService;
 }
Esempio n. 3
0
 public RepositoryService(IRepositoryCache cache)
 {
     github = new GitHubService(cache);
     devops = new DevOpsService();
 }