Search Results for

    Show / Hide Table of Contents
    View Source

    Class RebuildOnStartupHandler

    Handles how the indexes are rebuilt on startup

    Inheritance
    System.Object
    Namespace: Umbraco.Cms.Infrastructure.Examine
    Assembly: Umbraco.Infrastructure.dll
    Syntax
    public sealed class RebuildOnStartupHandler : INotificationHandler<UmbracoRequestBeginNotification>
    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, ExamineIndexRebuilder, IRuntimeState)

    Declaration
    public RebuildOnStartupHandler(ISyncBootStateAccessor syncBootStateAccessor, ExamineIndexRebuilder backgroundIndexRebuilder, IRuntimeState runtimeState)
    Parameters
    Type Name Description
    ISyncBootStateAccessor syncBootStateAccessor
    ExamineIndexRebuilder backgroundIndexRebuilder
    IRuntimeState runtimeState

    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
    • Improve this Doc
    • View Source
    In This Article
    • Constructors
      • RebuildOnStartupHandler(ISyncBootStateAccessor, ExamineIndexRebuilder, IRuntimeState)
    • Methods
      • Handle(UmbracoRequestBeginNotification)
    Back to top Copyright © 2016-present Umbraco
    Generated by DocFX