Class InfoObjectCacheDependencyBuilderExtensions
- Namespace
- CMS.DataEngine
- Assembly
- CMS.DataEngine.dll
Provides extension methods for the InfoObjectCacheDependencyBuilder class.
public static class InfoObjectCacheDependencyBuilderExtensions
- Inheritance
-
objectInfoObjectCacheDependencyBuilderExtensions
Methods
ByCodeName(InfoObjectCacheDependencyBuilder, IEnumerable<string>)
Adds a dependency on objects with the given code names of the type specified in ForInfoObjects<T>(CacheDependencyBuilder).
public static InfoObjectCacheDependencyBuilder ByCodeName(this InfoObjectCacheDependencyBuilder cacheDependencyBuilder, IEnumerable<string> codeNames)
Parameters
cacheDependencyBuilder
InfoObjectCacheDependencyBuilderCache dependency builder.
codeNames
IEnumerable<string>Collection of info object code names.
Returns
- InfoObjectCacheDependencyBuilder
The InfoObjectCacheDependencyBuilder instance for method chaining.
ByGuid(InfoObjectCacheDependencyBuilder, IEnumerable<Guid>)
Adds a dependency on objects with the given GUIDs of the type specified in ForInfoObjects<T>(CacheDependencyBuilder).
public static InfoObjectCacheDependencyBuilder ByGuid(this InfoObjectCacheDependencyBuilder cacheDependencyBuilder, IEnumerable<Guid> guids)
Parameters
cacheDependencyBuilder
InfoObjectCacheDependencyBuilderCache dependency builder.
guids
IEnumerable<Guid>Collection of info object GUIDs.
Returns
- InfoObjectCacheDependencyBuilder
The InfoObjectCacheDependencyBuilder instance for method chaining.
ById(InfoObjectCacheDependencyBuilder, IEnumerable<int>)
Adds a dependency on objects with the given IDs of the type specified in ForInfoObjects<T>(CacheDependencyBuilder).
public static InfoObjectCacheDependencyBuilder ById(this InfoObjectCacheDependencyBuilder cacheDependencyBuilder, IEnumerable<int> ids)
Parameters
cacheDependencyBuilder
InfoObjectCacheDependencyBuilderCache dependency builder.
ids
IEnumerable<int>Collection of info object IDs.
Returns
- InfoObjectCacheDependencyBuilder
The InfoObjectCacheDependencyBuilder instance for method chaining.