public RepositorioController( IHttpClientFactory clientFactory, IConfiguration configuration, IGitRepositorioAppService gitRepositorioAppService) { _clientFactory = clientFactory; _configuration = configuration; _gitRepositorioAppService = gitRepositorioAppService; _uriGetRepositoriesByUser = _configuration.GetSection("GithubIntegration")["RepositoriesByUserUri"].ThrowIfNull("Uri Repositories By User Github").ToString(); _uriGetRepositoriesByName = _configuration.GetSection("GithubIntegration")["RepositoriesByNameUri"].ThrowIfNull("Uri Repositories By Name Github").ToString(); _uriGetRepositoryByOwnerAndRepository = _configuration.GetSection("GithubIntegration")["RepositoryByOwnerAndRepository"].ThrowIfNull("Uri Repositories By User and Repository Github").ToString(); _uriGetContributorsRepository = _configuration.GetSection("GithubIntegration")["RepositoryContributors"].ThrowIfNull("Uri Contributors By User and Repository Github").ToString(); _repositoryFavoritePath = _configuration.GetSection("GithubIntegration")["RepositoryFavoritePath"].ThrowIfNull("Favorite Repositories").ToString(); }
public GitRepositoryController(IGitRepositorioAppService service) { _service = service; }