Search Results for

    Show / Hide Table of Contents
    View Source

    Class PublishedContentTypeCache

    Represents a content type cache.

    Inheritance
    System.Object
    Namespace: Umbraco.Cms.Core.PublishedCache
    Assembly: Umbraco.Infrastructure.dll
    Syntax
    public class PublishedContentTypeCache : IDisposable
    Remarks

    This cache is not snapshotted, so it refreshes any time things change.

    Constructors

    View Source

    PublishedContentTypeCache(IContentTypeService, IMediaTypeService, IMemberTypeService, IPublishedContentTypeFactory, ILogger<PublishedContentTypeCache>)

    Declaration
    public PublishedContentTypeCache(IContentTypeService contentTypeService, IMediaTypeService mediaTypeService, IMemberTypeService memberTypeService, IPublishedContentTypeFactory publishedContentTypeFactory, ILogger<PublishedContentTypeCache> logger)
    Parameters
    Type Name Description
    IContentTypeService contentTypeService
    IMediaTypeService mediaTypeService
    IMemberTypeService memberTypeService
    IPublishedContentTypeFactory publishedContentTypeFactory
    ILogger<PublishedContentTypeCache> logger

    Methods

    View Source

    ClearAll()

    Clears all cached content types.

    Declaration
    public void ClearAll()
    View Source

    ClearContentType(Int32)

    Clears a cached content type.

    Declaration
    public void ClearContentType(int id)
    Parameters
    Type Name Description
    System.Int32 id

    An identifier.

    View Source

    ClearDataType(Int32)

    Clears all cached content types referencing a data type.

    Declaration
    public void ClearDataType(int id)
    Parameters
    Type Name Description
    System.Int32 id

    A data type identifier.

    View Source

    Dispose()

    Declaration
    public void Dispose()
    View Source

    Dispose(Boolean)

    Declaration
    protected virtual void Dispose(bool disposing)
    Parameters
    Type Name Description
    System.Boolean disposing
    View Source

    Get(PublishedItemType, Guid)

    Gets a published content type.

    Declaration
    public IPublishedContentType Get(PublishedItemType itemType, Guid key)
    Parameters
    Type Name Description
    PublishedItemType itemType

    An item type.

    Guid key

    An key.

    Returns
    Type Description
    IPublishedContentType

    The published content type corresponding to the item key.

    View Source

    Get(PublishedItemType, Int32)

    Gets a published content type.

    Declaration
    public IPublishedContentType Get(PublishedItemType itemType, int id)
    Parameters
    Type Name Description
    PublishedItemType itemType

    An item type.

    System.Int32 id

    An identifier.

    Returns
    Type Description
    IPublishedContentType

    The published content type corresponding to the item type and identifier.

    View Source

    Get(PublishedItemType, String)

    Gets a published content type.

    Declaration
    public IPublishedContentType Get(PublishedItemType itemType, string alias)
    Parameters
    Type Name Description
    PublishedItemType itemType

    An item type.

    System.String alias

    An alias.

    Returns
    Type Description
    IPublishedContentType

    The published content type corresponding to the item type and alias.

    • Improve this Doc
    • View Source
    In This Article
    • Constructors
      • PublishedContentTypeCache(IContentTypeService, IMediaTypeService, IMemberTypeService, IPublishedContentTypeFactory, ILogger<PublishedContentTypeCache>)
    • Methods
      • ClearAll()
      • ClearContentType(Int32)
      • ClearDataType(Int32)
      • Dispose()
      • Dispose(Boolean)
      • Get(PublishedItemType, Guid)
      • Get(PublishedItemType, Int32)
      • Get(PublishedItemType, String)
    Back to top Copyright © 2016-present Umbraco
    Generated by DocFX