/// <inheritdoc /> public async Task <IRuleDefinitionRepository> GetRuleDefinitionRepositoryAsync(string objectName) { string ruleUrl = IpMaturityMatrixRuleset.DefinitionsUrlForName(objectName); IRuleDefinitionRepository repository = await cache.GetAsync(ruleUrl).ConfigureAwait(false); return(repository); }
/// <inheritdoc /> public async Task <IpMaturityMatrix> GetIpMaturityMatrixAsync( string gitHubOwner, string gitHubProject, string objectName) { string url = $"https://raw.githubusercontent.com/{gitHubOwner}/{gitHubProject}/{objectName}/imm.yaml"; IpMaturityMatrix imm = await cache.GetAsync(url).ConfigureAwait(false); return(imm); }