Class ContentItemCacheDependencyBuilderExtensions
- Namespace
- CMS.ContentEngine
- Assembly
- CMS.ContentEngine.dll
Provides extension methods for the ContentItemCacheDependencyBuilder class.
public static class ContentItemCacheDependencyBuilderExtensions
- Inheritance
-
objectContentItemCacheDependencyBuilderExtensions
Methods
ByCodeName(ContentItemCacheDependencyBuilder, IContentItemFieldsSource, string)
Adds a dependency on content item with the given code name.
public static ContentItemCacheDependencyBuilder ByCodeName(this ContentItemCacheDependencyBuilder contentItemCacheDependencyBuilder, IContentItemFieldsSource contentItem, string languageName = null)
Parameters
contentItemCacheDependencyBuilder
ContentItemCacheDependencyBuilderContent item cache dependency builder.
contentItem
IContentItemFieldsSourceContent item whose code name will be used.
languageName
stringName of the language. If not specified, all languages are considered.
Returns
- ContentItemCacheDependencyBuilder
The ContentItemCacheDependencyBuilder instance for method chaining.
ByCodeName(ContentItemCacheDependencyBuilder, IEnumerable<IContentItemFieldsSource>, string)
Adds a dependency on content items with the given code names.
public static ContentItemCacheDependencyBuilder ByCodeName(this ContentItemCacheDependencyBuilder contentItemCacheDependencyBuilder, IEnumerable<IContentItemFieldsSource> contentItems, string languageName = null)
Parameters
contentItemCacheDependencyBuilder
ContentItemCacheDependencyBuilderContent item cache dependency builder.
contentItems
IEnumerable<IContentItemFieldsSource>Collection of content items whose code names will be used.
languageName
stringName of the language. If not specified, all languages are considered.
Returns
- ContentItemCacheDependencyBuilder
The ContentItemCacheDependencyBuilder instance for method chaining.
ByCodeName(ContentItemCacheDependencyBuilder, IEnumerable<string>, string)
Adds a dependency on content items with the given code names.
public static ContentItemCacheDependencyBuilder ByCodeName(this ContentItemCacheDependencyBuilder contentItemCacheDependencyBuilder, IEnumerable<string> codeNames, string languageName = null)
Parameters
contentItemCacheDependencyBuilder
ContentItemCacheDependencyBuilderContent item cache dependency builder.
codeNames
IEnumerable<string>Collection content item code names.
languageName
stringName of the language. If not specified, all languages are considered.
Returns
- ContentItemCacheDependencyBuilder
The ContentItemCacheDependencyBuilder instance for method chaining.
ByContentType(ContentItemCacheDependencyBuilder, IEnumerable<string>, string)
Adds a dependency on content items with the given content type names.
public static ContentItemCacheDependencyBuilder ByContentType(this ContentItemCacheDependencyBuilder contentItemCacheDependencyBuilder, IEnumerable<string> contentTypeNames, string languageName = null)
Parameters
contentItemCacheDependencyBuilder
ContentItemCacheDependencyBuilderContent item cache dependency builder.
contentTypeNames
IEnumerable<string>Collection content item content type names.
languageName
stringName of the language. If not specified, all languages are considered.
Returns
- ContentItemCacheDependencyBuilder
The ContentItemCacheDependencyBuilder instance for method chaining.
ByContentType(ContentItemCacheDependencyBuilder, string, string)
Adds a dependency on content items with the given content type.
public static ContentItemCacheDependencyBuilder ByContentType(this ContentItemCacheDependencyBuilder contentItemCacheDependencyBuilder, string contentTypeName, string languageName = null)
Parameters
contentItemCacheDependencyBuilder
ContentItemCacheDependencyBuilderContent item cache dependency builder.
contentTypeName
stringContent type name.
languageName
stringName of the language. If not specified, all languages are considered.
Returns
- ContentItemCacheDependencyBuilder
The ContentItemCacheDependencyBuilder instance for method chaining.
ByGuid(ContentItemCacheDependencyBuilder, IContentItemFieldsSource, string)
Adds a dependency on content item with the given GUID.
public static ContentItemCacheDependencyBuilder ByGuid(this ContentItemCacheDependencyBuilder contentItemCacheDependencyBuilder, IContentItemFieldsSource contentItem, string languageName = null)
Parameters
contentItemCacheDependencyBuilder
ContentItemCacheDependencyBuilderContent item cache dependency builder.
contentItem
IContentItemFieldsSourceContent item whose GUID will be used.
languageName
stringName of the language. If not specified, all languages are considered.
Returns
- ContentItemCacheDependencyBuilder
The ContentItemCacheDependencyBuilder instance for method chaining.
ByGuid(ContentItemCacheDependencyBuilder, IEnumerable<IContentItemFieldsSource>, string)
Adds a dependency on content items with the given GUIDs.
public static ContentItemCacheDependencyBuilder ByGuid(this ContentItemCacheDependencyBuilder contentItemCacheDependencyBuilder, IEnumerable<IContentItemFieldsSource> contentItems, string languageName = null)
Parameters
contentItemCacheDependencyBuilder
ContentItemCacheDependencyBuilderContent item cache dependency builder.
contentItems
IEnumerable<IContentItemFieldsSource>Collection of content items whose GUIDs will be used.
languageName
stringName of the language. If not specified, all languages are considered.
Returns
- ContentItemCacheDependencyBuilder
The ContentItemCacheDependencyBuilder instance for method chaining.
ByGuid(ContentItemCacheDependencyBuilder, IEnumerable<Guid>, string)
Adds a dependency on content items with the given GUIDs.
public static ContentItemCacheDependencyBuilder ByGuid(this ContentItemCacheDependencyBuilder contentItemCacheDependencyBuilder, IEnumerable<Guid> guids, string languageName = null)
Parameters
contentItemCacheDependencyBuilder
ContentItemCacheDependencyBuilderContent item cache dependency builder.
guids
IEnumerable<Guid>Collection content item GUIDs.
languageName
stringName of the language. If not specified, all languages are considered.
Returns
- ContentItemCacheDependencyBuilder
The ContentItemCacheDependencyBuilder instance for method chaining.
ById(ContentItemCacheDependencyBuilder, IContentItemFieldsSource, string)
Adds a dependency on content item with the given ID.
public static ContentItemCacheDependencyBuilder ById(this ContentItemCacheDependencyBuilder contentItemCacheDependencyBuilder, IContentItemFieldsSource contentItem, string languageName = null)
Parameters
contentItemCacheDependencyBuilder
ContentItemCacheDependencyBuilderContent item cache dependency builder.
contentItem
IContentItemFieldsSourceContent item whose ID will be used.
languageName
stringName of the language. If not specified, all languages are considered.
Returns
- ContentItemCacheDependencyBuilder
The ContentItemCacheDependencyBuilder instance for method chaining.
ById(ContentItemCacheDependencyBuilder, IEnumerable<IContentItemFieldsSource>, string)
Adds a dependency on content item with the given IDs.
public static ContentItemCacheDependencyBuilder ById(this ContentItemCacheDependencyBuilder contentItemCacheDependencyBuilder, IEnumerable<IContentItemFieldsSource> contentItems, string languageName = null)
Parameters
contentItemCacheDependencyBuilder
ContentItemCacheDependencyBuilderContent item cache dependency builder.
contentItems
IEnumerable<IContentItemFieldsSource>Collection of content items whose IDs will be used.
languageName
stringName of the language. If not specified, all languages are considered.
Returns
- ContentItemCacheDependencyBuilder
The ContentItemCacheDependencyBuilder instance for method chaining.
ById(ContentItemCacheDependencyBuilder, IEnumerable<int>, string)
Adds a dependency on content items with the given IDs.
public static ContentItemCacheDependencyBuilder ById(this ContentItemCacheDependencyBuilder contentItemCacheDependencyBuilder, IEnumerable<int> ids, string languageName = null)
Parameters
contentItemCacheDependencyBuilder
ContentItemCacheDependencyBuilderContent item cache dependency builder.
ids
IEnumerable<int>Collection content item IDs.
languageName
stringName of the language. If not specified, all languages are considered.
Returns
- ContentItemCacheDependencyBuilder
The ContentItemCacheDependencyBuilder instance for method chaining.