コード例 #1
0
 /// <summary>
 /// Extracts identifier sets from a listing taxonomy group response.
 /// </summary>
 /// <param name="response">The <see cref="DeliveryTaxonomyListingResponse"/> response.</param>
 /// <returns>Identifiers of all formats of all the taxonomies.</returns>
 public IEnumerable <CacheTokenPair> GetTaxonomyListingDependencies(DeliveryTaxonomyListingResponse response)
 {
     return(response?.Taxonomies?.SelectMany(t => GetTaxonomySingleDependency(t)).Distinct());
 }
コード例 #2
0
 /// <summary>
 /// Gets Taxonomies dependency keys from response
 /// </summary>
 /// <param name="response">Response</param>
 /// <returns>Dependency keys</returns>
 public static IEnumerable <string> GetTaxonomiesDependencies(DeliveryTaxonomyListingResponse response)
 {
     return(response?.Taxonomies != null
         ? new[] { GetTaxonomiesDependencyKey() }
         : Enumerable.Empty <string>());
 }