View Source
Class DomainCache
Inheritance
System.Object
Assembly: Umbraco.PublishedCache.HybridCache.dll
Syntax
public class DomainCache : IDomainCache
Constructors
View Source
DomainCache(IDefaultCultureAccessor, IDomainCacheService)
Declaration
public DomainCache(IDefaultCultureAccessor defaultCultureAccessor, IDomainCacheService domainCacheService)
Parameters
Properties
View Source
DefaultCulture
Gets the system default culture.
Declaration
public string DefaultCulture { get; }
Property Value
Type |
Description |
System.String |
|
Methods
View Source
GetAll(Boolean)
Declaration
public IEnumerable<Domain> GetAll(bool includeWildcards)
Parameters
Type |
Name |
Description |
System.Boolean |
includeWildcards |
|
Returns
Type |
Description |
IEnumerable<Domain> |
|
View Source
GetAssigned(Int32, Boolean)
Declaration
public IEnumerable<Domain> GetAssigned(int documentId, bool includeWildcards = false)
Parameters
Type |
Name |
Description |
System.Int32 |
documentId |
|
System.Boolean |
includeWildcards |
|
Returns
Type |
Description |
IEnumerable<Domain> |
|
View Source
HasAssigned(Int32, Boolean)
Determines whether a document has domains.
Declaration
public bool HasAssigned(int documentId, bool includeWildcards = false)
Parameters
Type |
Name |
Description |
System.Int32 |
documentId |
The document identifier.
|
System.Boolean |
includeWildcards |
A value indicating whether to consider wildcard domains.
|
Returns
Type |
Description |
System.Boolean |
|