Search Results for

    Show / Hide Table of Contents
    View Source

    Class DatabaseServerMessengerNotificationHandler

    Ensures that distributed cache events are setup and the IServerMessenger is initialized

    Inheritance
    object
    Namespace: Umbraco.Cms.Core.Cache
    Assembly: Umbraco.Infrastructure.dll
    Syntax
    public sealed class DatabaseServerMessengerNotificationHandler : INotificationHandler<UmbracoApplicationStartingNotification>, INotificationHandler<UmbracoRequestEndNotification>, INotificationHandler

    Constructors

    View Source

    DatabaseServerMessengerNotificationHandler(IServerMessenger, IUmbracoDatabaseFactory, ILogger<DatabaseServerMessengerNotificationHandler>, IRuntimeState)

    Initializes a new instance of the DatabaseServerMessengerNotificationHandler class.

    Declaration
    public DatabaseServerMessengerNotificationHandler(IServerMessenger serverMessenger, IUmbracoDatabaseFactory databaseFactory, ILogger<DatabaseServerMessengerNotificationHandler> logger, IRuntimeState runtimeState)
    Parameters
    Type Name Description
    IServerMessenger serverMessenger
    IUmbracoDatabaseFactory databaseFactory
    ILogger<DatabaseServerMessengerNotificationHandler> logger
    IRuntimeState runtimeState

    Methods

    View Source

    Handle(UmbracoApplicationStartingNotification)

    Handles a notification.

    Declaration
    public void Handle(UmbracoApplicationStartingNotification notification)
    Parameters
    Type Name Description
    UmbracoApplicationStartingNotification notification

    The notification.

    View Source

    Handle(UmbracoRequestEndNotification)

    Handles the end of an Umbraco request by clearing the batch of distributed cache instructions.

    Declaration
    public void Handle(UmbracoRequestEndNotification notification)
    Parameters
    Type Name Description
    UmbracoRequestEndNotification notification

    The notification instance signaling the end of an Umbraco request.

    • View Source
    In this article
    Back to top Copyright © 2016-present Umbraco
    Generated by DocFX