Search Results for

    Show / Hide Table of Contents
    View Source

    Class PublishedSnapshotServiceEventHandler

    Subscribes to Umbraco events to ensure nucache remains consistent with the source data

    Inheritance
    System.Object
    Namespace: Umbraco.Cms.Infrastructure.PublishedCache
    Assembly: Umbraco.PublishedCache.NuCache.dll
    Syntax
    public class PublishedSnapshotServiceEventHandler : INotificationHandler<LanguageSavedNotification>

    Constructors

    View Source

    PublishedSnapshotServiceEventHandler(IPublishedSnapshotService, INuCacheContentService)

    Initializes a new instance of the PublishedSnapshotServiceEventHandler class.

    Declaration
    public PublishedSnapshotServiceEventHandler(IPublishedSnapshotService publishedSnapshotService, INuCacheContentService publishedContentService)
    Parameters
    Type Name Description
    IPublishedSnapshotService publishedSnapshotService
    INuCacheContentService publishedContentService
    View Source

    PublishedSnapshotServiceEventHandler(IRuntimeState, IPublishedSnapshotService, INuCacheContentService, IContentService, IMediaService)

    Declaration
    public PublishedSnapshotServiceEventHandler(IRuntimeState runtime, IPublishedSnapshotService publishedSnapshotService, INuCacheContentService publishedContentService, IContentService contentService, IMediaService mediaService)
    Parameters
    Type Name Description
    IRuntimeState runtime
    IPublishedSnapshotService publishedSnapshotService
    INuCacheContentService publishedContentService
    IContentService contentService
    IMediaService mediaService

    Methods

    View Source

    Handle(ContentRefreshNotification)

    Declaration
    public void Handle(ContentRefreshNotification notification)
    Parameters
    Type Name Description
    ContentRefreshNotification notification
    View Source

    Handle(ContentTypeRefreshedNotification)

    Declaration
    public void Handle(ContentTypeRefreshedNotification notification)
    Parameters
    Type Name Description
    ContentTypeRefreshedNotification notification
    View Source

    Handle(LanguageSavedNotification)

    If a is ever saved with a different culture, we need to rebuild all of the content nucache database table

    Declaration
    public void Handle(LanguageSavedNotification notification)
    Parameters
    Type Name Description
    LanguageSavedNotification notification
    View Source

    Handle(MediaRefreshNotification)

    Declaration
    public void Handle(MediaRefreshNotification notification)
    Parameters
    Type Name Description
    MediaRefreshNotification notification
    View Source

    Handle(MediaTypeRefreshedNotification)

    Declaration
    public void Handle(MediaTypeRefreshedNotification notification)
    Parameters
    Type Name Description
    MediaTypeRefreshedNotification notification
    View Source

    Handle(MemberDeletingNotification)

    Declaration
    public void Handle(MemberDeletingNotification notification)
    Parameters
    Type Name Description
    MemberDeletingNotification notification
    View Source

    Handle(MemberRefreshNotification)

    Declaration
    public void Handle(MemberRefreshNotification notification)
    Parameters
    Type Name Description
    MemberRefreshNotification notification
    View Source

    Handle(MemberTypeRefreshedNotification)

    Declaration
    public void Handle(MemberTypeRefreshedNotification notification)
    Parameters
    Type Name Description
    MemberTypeRefreshedNotification notification
    View Source

    Handle(ScopedEntityRemoveNotification)

    Declaration
    public void Handle(ScopedEntityRemoveNotification notification)
    Parameters
    Type Name Description
    ScopedEntityRemoveNotification notification
    • Improve this Doc
    • View Source
    In This Article
    • Constructors
      • PublishedSnapshotServiceEventHandler(IPublishedSnapshotService, INuCacheContentService)
      • PublishedSnapshotServiceEventHandler(IRuntimeState, IPublishedSnapshotService, INuCacheContentService, IContentService, IMediaService)
    • Methods
      • Handle(ContentRefreshNotification)
      • Handle(ContentTypeRefreshedNotification)
      • Handle(LanguageSavedNotification)
      • Handle(MediaRefreshNotification)
      • Handle(MediaTypeRefreshedNotification)
      • Handle(MemberDeletingNotification)
      • Handle(MemberRefreshNotification)
      • Handle(MemberTypeRefreshedNotification)
      • Handle(ScopedEntityRemoveNotification)
    Back to top Copyright © 2016-present Umbraco
    Generated by DocFX