View Source
Inheritance
System.Object
Assembly: Umbraco.PublishedCache.NuCache.dll
public class MediaCache : PublishedCacheBase
Constructors
View Source
MediaCache(Boolean, ContentStore.Snapshot, IVariationContextAccessor)
Declaration
public MediaCache(bool previewDefault, ContentStore.Snapshot snapshot, IVariationContextAccessor variationContextAccessor)
Parameters
Type |
Name |
Description |
System.Boolean |
previewDefault |
|
ContentStore.Snapshot |
snapshot |
|
IVariationContextAccessor |
variationContextAccessor |
|
Methods
View Source
Declaration
public override XPathNavigator CreateNavigator(bool preview)
Parameters
Type |
Name |
Description |
System.Boolean |
preview |
|
Returns
Type |
Description |
System.Xml.XPath.XPathNavigator |
|
View Source
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
Declaration
View Source
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
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
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
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
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
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
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
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
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 |
|