Class WebPageItemCacheDependencyBuilder
Represents a builder for cache dependencies of web page items. CacheDependencyBuilder IWebPageFieldsSource
public sealed class WebPageItemCacheDependencyBuilder
- Inheritance
-
objectWebPageItemCacheDependencyBuilder
- Extension Methods
Methods
All(string)
Adds a dependency on all web page items.
public WebPageItemCacheDependencyBuilder All(string channelName = null)
Parameters
channelName
stringName of the channel that limits web page items considered.
Returns
- WebPageItemCacheDependencyBuilder
The WebPageItemCacheDependencyBuilder instance for method chaining.
Builder()
Returns the root CacheDependencyBuilder.
public CacheDependencyBuilder Builder()
Returns
ByCodeName(string, string)
Adds a dependency on web page item with the given code name.
public WebPageItemCacheDependencyBuilder ByCodeName(string codeName, string languageName = null)
Parameters
codeName
stringThe code name of the web page item.
languageName
stringName of the language. If not specified, all languages are considered.
Returns
- WebPageItemCacheDependencyBuilder
The WebPageItemCacheDependencyBuilder instance for method chaining.
ByContentType<T>(string, string)
Adds a dependency on web page items with the given content type.
public WebPageItemCacheDependencyBuilder ByContentType<T>(string channelName, string languageName = null) where T : IWebPageFieldsSource
Parameters
channelName
stringName of the channel that limits web page items considered.
languageName
stringName of the language. If not specified, all languages are considered.
Returns
- WebPageItemCacheDependencyBuilder
The WebPageItemCacheDependencyBuilder instance for method chaining.
Type Parameters
T
Model representing the content type.
ByGuid(Guid, string)
Adds a dependency on web page item with the given GUID.
public WebPageItemCacheDependencyBuilder ByGuid(Guid guid, string languageName = null)
Parameters
guid
GuidThe GUID of the web page item.
languageName
stringName of the language. If not specified, all languages are considered.
Returns
- WebPageItemCacheDependencyBuilder
The WebPageItemCacheDependencyBuilder instance for method chaining.
ById(int, string)
Adds a dependency on web page item with the given ID.
public WebPageItemCacheDependencyBuilder ById(int id, string languageName = null)
Parameters
id
intThe ID of the web page item.
languageName
stringName of the language. If not specified, all languages are considered.
Returns
- WebPageItemCacheDependencyBuilder
The WebPageItemCacheDependencyBuilder instance for method chaining.
ByPath(CacheDependencyPath, string, string)
Adds a dependency on web page items matching given tree path.
public WebPageItemCacheDependencyBuilder ByPath(CacheDependencyPath path, string channelName, string languageName = null)
Parameters
path
CacheDependencyPathWeb page tree path for which the cache key should be limited.
channelName
stringName of the channel that limits web page items considered.
languageName
stringName of the language. If not specified, all languages are considered.
Returns
- WebPageItemCacheDependencyBuilder
The WebPageItemCacheDependencyBuilder instance for method chaining.