Table of Contents

Class ContentItemCacheDependencyBuilderExtensions

Namespace
CMS.ContentEngine
Assembly
CMS.ContentEngine.dll

Provides extension methods for the ContentItemCacheDependencyBuilder class.

public static class ContentItemCacheDependencyBuilderExtensions
Inheritance
object
ContentItemCacheDependencyBuilderExtensions

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 ContentItemCacheDependencyBuilder

Content item cache dependency builder.

contentItem IContentItemFieldsSource

Content item whose code name will be used.

languageName string

Name 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 ContentItemCacheDependencyBuilder

Content item cache dependency builder.

contentItems IEnumerable<IContentItemFieldsSource>

Collection of content items whose code names will be used.

languageName string

Name 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 ContentItemCacheDependencyBuilder

Content item cache dependency builder.

codeNames IEnumerable<string>

Collection content item code names.

languageName string

Name 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 ContentItemCacheDependencyBuilder

Content item cache dependency builder.

contentTypeNames IEnumerable<string>

Collection content item content type names.

languageName string

Name 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 ContentItemCacheDependencyBuilder

Content item cache dependency builder.

contentTypeName string

Content type name.

languageName string

Name 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 ContentItemCacheDependencyBuilder

Content item cache dependency builder.

contentItem IContentItemFieldsSource

Content item whose GUID will be used.

languageName string

Name 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 ContentItemCacheDependencyBuilder

Content item cache dependency builder.

contentItems IEnumerable<IContentItemFieldsSource>

Collection of content items whose GUIDs will be used.

languageName string

Name 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 ContentItemCacheDependencyBuilder

Content item cache dependency builder.

guids IEnumerable<Guid>

Collection content item GUIDs.

languageName string

Name 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 ContentItemCacheDependencyBuilder

Content item cache dependency builder.

contentItem IContentItemFieldsSource

Content item whose ID will be used.

languageName string

Name 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 ContentItemCacheDependencyBuilder

Content item cache dependency builder.

contentItems IEnumerable<IContentItemFieldsSource>

Collection of content items whose IDs will be used.

languageName string

Name 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 ContentItemCacheDependencyBuilder

Content item cache dependency builder.

ids IEnumerable<int>

Collection content item IDs.

languageName string

Name of the language. If not specified, all languages are considered.

Returns

ContentItemCacheDependencyBuilder

The ContentItemCacheDependencyBuilder instance for method chaining.