C# Класс Geta.EPi.Extensions.SingletonPage.DefaultContentReferenceCache

Default cache for singleton page content references. Uses ConcurrentDictionary.
Наследование: IContentReferenceCache
Показать файл Открыть проект

Открытые методы

Метод Описание
DefaultContentReferenceCache ( ) : System

Instantiates new DefaultContentReferenceCache.

GetOrAdd ( CacheKey key, Func valueFactory ) : EPiServer.Core.ContentReference

Gets or adds a singleton page content reference to the cache when not empty.

Описание методов

DefaultContentReferenceCache() публичный Метод

Instantiates new DefaultContentReferenceCache.
public DefaultContentReferenceCache ( ) : System
Результат System

GetOrAdd() публичный Метод

Gets or adds a singleton page content reference to the cache when not empty.
public GetOrAdd ( CacheKey key, Func valueFactory ) : EPiServer.Core.ContentReference
key CacheKey Cache key as a pair of the root page content reference and singleton page type.
valueFactory Func Factory function to get singleton page content reference.
Результат EPiServer.Core.ContentReference