private static List <string> GetResourceUrls(V3Index v3Index, Func <Resource, bool> isMatch) { return(v3Index .Resources .Where(isMatch) .Select(r => r.Id.TrimEnd('/')) .Distinct() .OrderBy(u => u) .ToList()); }
private static List <string> GetResourceUrls(V3Index v3Index, string resourceType) { return(GetResourceUrls( v3Index, r => r.Type == resourceType || r.Type.StartsWith($"{resourceType}/"))); }