Search Results for

    Show / Hide Table of Contents
    View Source

    Class RebuildOnStartupHandler

    Handles how the indexes are rebuilt on startup

    Inheritance
    object
    Namespace: Umbraco.Cms.Infrastructure.Examine
    Assembly: Umbraco.Infrastructure.dll
    Syntax
    public sealed class RebuildOnStartupHandler : INotificationHandler<UmbracoRequestBeginNotification>, INotificationHandler
    Remarks

    On the first HTTP request this will rebuild the Examine indexes if they are empty. If it is a cold boot, they are all rebuilt.

    Constructors

    View Source

    RebuildOnStartupHandler(ISyncBootStateAccessor, IIndexRebuilder, IRuntimeState)

    Initializes a new instance of the RebuildOnStartupHandler class, responsible for handling index rebuilds during application startup.

    Declaration
    public RebuildOnStartupHandler(ISyncBootStateAccessor syncBootStateAccessor, IIndexRebuilder indexRebuilder, IRuntimeState runtimeState)
    Parameters
    Type Name Description
    ISyncBootStateAccessor syncBootStateAccessor

    Provides access to the application's synchronous boot state, used to determine if the system is ready for index rebuilding.

    IIndexRebuilder indexRebuilder

    The service responsible for rebuilding Examine indexes.

    IRuntimeState runtimeState

    Provides information about the current runtime state of the Umbraco application.

    Methods

    View Source

    Handle(UmbracoRequestBeginNotification)

    On first http request schedule an index rebuild for any empty indexes (or all if it's a cold boot)

    Declaration
    public void Handle(UmbracoRequestBeginNotification notification)
    Parameters
    Type Name Description
    UmbracoRequestBeginNotification notification
    • View Source
    In this article
    Back to top Copyright © 2016-present Umbraco
    Generated by DocFX