View Source
Class PublishedSnapshotServiceEventHandler
Subscribes to Umbraco events to ensure nucache remains consistent with the source data
Inheritance
System.Object
Assembly: Umbraco.PublishedCache.NuCache.dll
Syntax
public class PublishedSnapshotServiceEventHandler : INotificationHandler<LanguageSavedNotification>
Constructors
View Source
PublishedSnapshotServiceEventHandler(IPublishedSnapshotService, INuCacheContentService)
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
Declaration
public void Handle(MediaRefreshNotification notification)
Parameters
| Type |
Name |
Description |
| MediaRefreshNotification |
notification |
|
View Source
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 |
|