public async Task <IActionResult> Get(string name, Language?language) { try { var result = await _manager.GetRepositories(name, language); return(Ok(result)); } catch (Exception ex) { await Console.Error.WriteAsync(ex.Message); //TODO: implement distributed logging throw; } }
private void CacheRepositoryActions() { if (_repositoryManager == null) { return; } foreach (var repository in _repositoryManager.GetRepositories()) { foreach (var repositoryAction in _repositoryActionLoactor.GetRepositoryActions(_repositoryManager, repository)) { _cache.AddAction(repositoryAction); } } }