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>, 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 SourceRebuildOnStartupHandler(ISyncBootStateAccessor, ExamineIndexRebuilder, IRuntimeState)
Declaration
public RebuildOnStartupHandler(ISyncBootStateAccessor syncBootStateAccessor, ExamineIndexRebuilder backgroundIndexRebuilder, IRuntimeState runtimeState)
Parameters
Type | Name | Description |
---|---|---|
ISyncBootStateAccessor | syncBootStateAccessor | |
ExamineIndexRebuilder | backgroundIndexRebuilder | |
IRuntimeState | runtimeState |
Methods
View SourceHandle(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 |