View Source
Class ContentCache
Inheritance
System.Object
Assembly: Umbraco.PublishedCache.NuCache.dll
Syntax
public class ContentCache : PublishedCacheBase
Constructors
View Source
ContentCache(Boolean, ContentStore.Snapshot, IAppCache, Nullable<IAppCache>, IDomainCache, IOptions<GlobalSettings>, IVariationContextAccessor)
Declaration
public ContentCache(bool previewDefault, ContentStore.Snapshot snapshot, IAppCache snapshotCache, IAppCache? elementsCache, IDomainCache domainCache, IOptions<GlobalSettings> globalSettings, IVariationContextAccessor variationContextAccessor)
Parameters
Type |
Name |
Description |
System.Boolean |
previewDefault |
|
ContentStore.Snapshot |
snapshot |
|
IAppCache |
snapshotCache |
|
System.Nullable<IAppCache> |
elementsCache |
|
IDomainCache |
domainCache |
|
IOptions<GlobalSettings> |
globalSettings |
|
IVariationContextAccessor |
variationContextAccessor |
|
Methods
View Source
CreateNavigator(Boolean)
Declaration
public override XPathNavigator CreateNavigator(bool preview)
Parameters
Type |
Name |
Description |
System.Boolean |
preview |
|
Returns
Type |
Description |
System.Xml.XPath.XPathNavigator |
|
View Source
CreateNodeNavigator(Int32, Boolean)
Declaration
public override XPathNavigator CreateNodeNavigator(int id, bool preview)
Parameters
Type |
Name |
Description |
System.Int32 |
id |
|
System.Boolean |
preview |
|
Returns
Type |
Description |
System.Xml.XPath.XPathNavigator |
|
View Source
Dispose()
Declaration
View Source
GetAtRoot(Boolean, String)
Declaration
public override IEnumerable<IPublishedContent> GetAtRoot(bool preview, string culture = null)
Parameters
Type |
Name |
Description |
System.Boolean |
preview |
|
System.String |
culture |
|
Returns
Type |
Description |
IEnumerable<IPublishedContent> |
|
View Source
GetById(Boolean, Guid)
Declaration
public override IPublishedContent? GetById(bool preview, Guid contentId)
Parameters
Type |
Name |
Description |
System.Boolean |
preview |
|
Guid |
contentId |
|
Returns
Type |
Description |
System.Nullable<IPublishedContent> |
|
View Source
GetById(Boolean, Int32)
Declaration
public override IPublishedContent? GetById(bool preview, int contentId)
Parameters
Type |
Name |
Description |
System.Boolean |
preview |
|
System.Int32 |
contentId |
|
Returns
Type |
Description |
System.Nullable<IPublishedContent> |
|
View Source
GetById(Boolean, Udi)
Declaration
public override IPublishedContent? GetById(bool preview, Udi contentId)
Parameters
Type |
Name |
Description |
System.Boolean |
preview |
|
Udi |
contentId |
|
Returns
Type |
Description |
System.Nullable<IPublishedContent> |
|
View Source
GetByRoute(Boolean, String, Nullable<Boolean>, String)
Declaration
public IPublishedContent? GetByRoute(bool preview, string route, bool? hideTopLevelNode = null, string culture = null)
Parameters
Type |
Name |
Description |
System.Boolean |
preview |
|
System.String |
route |
|
System.Nullable<System.Boolean> |
hideTopLevelNode |
|
System.String |
culture |
|
Returns
Type |
Description |
System.Nullable<IPublishedContent> |
|
View Source
GetByRoute(String, Nullable<Boolean>, String)
Declaration
public IPublishedContent? GetByRoute(string route, bool? hideTopLevelNode = null, string culture = null)
Parameters
Type |
Name |
Description |
System.String |
route |
|
System.Nullable<System.Boolean> |
hideTopLevelNode |
|
System.String |
culture |
|
Returns
Type |
Description |
System.Nullable<IPublishedContent> |
|
View Source
GetByXPath(Boolean, String, XPathVariable[])
Declaration
public override IEnumerable<IPublishedContent> GetByXPath(bool preview, string xpath, XPathVariable[] vars)
Parameters
Type |
Name |
Description |
System.Boolean |
preview |
|
System.String |
xpath |
|
XPathVariable[] |
vars |
|
Returns
Type |
Description |
IEnumerable<IPublishedContent> |
|
View Source
GetByXPath(Boolean, XPathExpression, XPathVariable[])
Declaration
public override IEnumerable<IPublishedContent> GetByXPath(bool preview, XPathExpression xpath, XPathVariable[] vars)
Parameters
Type |
Name |
Description |
System.Boolean |
preview |
|
System.Xml.XPath.XPathExpression |
xpath |
|
XPathVariable[] |
vars |
|
Returns
Type |
Description |
IEnumerable<IPublishedContent> |
|
View Source
GetContentType(Guid)
Declaration
public override IPublishedContentType? GetContentType(Guid key)
Parameters
Type |
Name |
Description |
Guid |
key |
|
Returns
Type |
Description |
System.Nullable<IPublishedContentType> |
|
View Source
GetContentType(Int32)
Declaration
public override IPublishedContentType? GetContentType(int id)
Parameters
Type |
Name |
Description |
System.Int32 |
id |
|
Returns
Type |
Description |
System.Nullable<IPublishedContentType> |
|
View Source
GetContentType(String)
Declaration
public override IPublishedContentType? GetContentType(string alias)
Parameters
Type |
Name |
Description |
System.String |
alias |
|
Returns
Type |
Description |
System.Nullable<IPublishedContentType> |
|
View Source
GetRouteById(Boolean, Int32, String)
Declaration
public string GetRouteById(bool preview, int contentId, string culture = null)
Parameters
Type |
Name |
Description |
System.Boolean |
preview |
|
System.Int32 |
contentId |
|
System.String |
culture |
|
Returns
Type |
Description |
System.String |
|
View Source
GetRouteById(Int32, String)
Declaration
public string GetRouteById(int contentId, string culture = null)
Parameters
Type |
Name |
Description |
System.Int32 |
contentId |
|
System.String |
culture |
|
Returns
Type |
Description |
System.String |
|
View Source
GetSingleByXPath(Boolean, String, XPathVariable[])
Declaration
public override IPublishedContent? GetSingleByXPath(bool preview, string xpath, XPathVariable[] vars)
Parameters
Type |
Name |
Description |
System.Boolean |
preview |
|
System.String |
xpath |
|
XPathVariable[] |
vars |
|
Returns
Type |
Description |
System.Nullable<IPublishedContent> |
|
View Source
GetSingleByXPath(Boolean, XPathExpression, XPathVariable[])
Declaration
public override IPublishedContent? GetSingleByXPath(bool preview, XPathExpression xpath, XPathVariable[] vars)
Parameters
Type |
Name |
Description |
System.Boolean |
preview |
|
System.Xml.XPath.XPathExpression |
xpath |
|
XPathVariable[] |
vars |
|
Returns
Type |
Description |
System.Nullable<IPublishedContent> |
|
View Source
HasById(Boolean, Int32)
Declaration
public override bool HasById(bool preview, int contentId)
Parameters
Type |
Name |
Description |
System.Boolean |
preview |
|
System.Int32 |
contentId |
|
Returns
Type |
Description |
System.Boolean |
|
View Source
HasContent(Boolean)
Declaration
public override bool HasContent(bool preview)
Parameters
Type |
Name |
Description |
System.Boolean |
preview |
|
Returns
Type |
Description |
System.Boolean |
|