/// <summary> /// Creates new <see cref="ICacheSectionDescriptor{TValue}"/>. /// </summary> /// <typeparam name="TValue">Value type.</typeparam> /// <param name="cacheSettings">Source cache settings.</param> /// <param name="sectionName">Cache section name.</param> /// <returns>New instance of <see cref="ICacheSectionDescriptor{TValue}"/>.</returns> public static ICacheSectionDescriptor <TValue> CreateSectionDescriptor <TValue>(this ICacheSettings <TValue> cacheSettings, string sectionName) { return(new CacheSectionDescriptor <TValue>(sectionName, cacheSettings.AsReadOnly())); }