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; }
public RepositoryService(IRepositoryCache cache) { github = new GitHubService(cache); devops = new DevOpsService(); }