• Core
  • Infrastructure
  • Web
  • Extensions
Search Results for

    Show / Hide Table of Contents
    View Source

    Class ContentCache

    Inheritance
    System.Object
    PublishedCacheBase
    Namespace: Umbraco.Cms.Infrastructure.PublishedCache
    Assembly: Umbraco.PublishedCache.NuCache.dll
    Syntax
    public class ContentCache : PublishedCacheBase, IPublishedContentCache, IPublishedCache, IXPathNavigable

    Constructors

    View Source

    ContentCache(Boolean, ContentStore.Snapshot, IAppCache, 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
    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
    public void Dispose()
    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
    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
    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
    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
    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
    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
    IPublishedContentType
    View Source

    GetContentType(Int32)

    Declaration
    public override IPublishedContentType GetContentType(int id)
    Parameters
    Type Name Description
    System.Int32 id
    Returns
    Type Description
    IPublishedContentType
    View Source

    GetContentType(String)

    Declaration
    public override IPublishedContentType GetContentType(string alias)
    Parameters
    Type Name Description
    System.String alias
    Returns
    Type Description
    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
    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
    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
    • Improve this Doc
    • View Source
    In This Article
    • Constructors
      • ContentCache(Boolean, ContentStore.Snapshot, IAppCache, IAppCache, IDomainCache, IOptions<GlobalSettings>, IVariationContextAccessor)
    • Methods
      • CreateNavigator(Boolean)
      • CreateNodeNavigator(Int32, Boolean)
      • Dispose()
      • GetAtRoot(Boolean, String)
      • GetById(Boolean, Guid)
      • GetById(Boolean, Int32)
      • GetById(Boolean, Udi)
      • GetByRoute(Boolean, String, Nullable<Boolean>, String)
      • GetByRoute(String, Nullable<Boolean>, String)
      • GetByXPath(Boolean, String, XPathVariable[])
      • GetByXPath(Boolean, XPathExpression, XPathVariable[])
      • GetContentType(Guid)
      • GetContentType(Int32)
      • GetContentType(String)
      • GetRouteById(Boolean, Int32, String)
      • GetRouteById(Int32, String)
      • GetSingleByXPath(Boolean, String, XPathVariable[])
      • GetSingleByXPath(Boolean, XPathExpression, XPathVariable[])
      • HasById(Boolean, Int32)
      • HasContent(Boolean)
    Back to top Copyright © 2016-present Umbraco
    Generated by DocFX