Class Suspendable.ExamineEvents
Represents events related to the Examine indexing process that can be suspended.
Inheritance
Namespace: Umbraco.Cms.Infrastructure
Assembly: Umbraco.Infrastructure.dll
Syntax
public static class Suspendable.ExamineEvents
Remarks
This is really needed at all since the only place this is used is in ExamineComponent and that already maintains a flag of whether it suspsended or not AHH... but Deploy probably uses this?
Properties
View SourceCanIndex
Gets a value indicating whether indexing is currently allowed.
Declaration
public static bool CanIndex { get; }
Property Value
| Type | Description |
|---|---|
| bool |
Methods
View SourceResumeIndexers(IIndexRebuilder)
Resumes the indexers after they have been suspended. If a rebuild was previously attempted while suspended, this method triggers a rebuild of the indexes using the provided backgroundIndexRebuilder.
Declaration
public static void ResumeIndexers(IIndexRebuilder backgroundIndexRebuilder)
Parameters
| Type | Name | Description |
|---|---|---|
| IIndexRebuilder | backgroundIndexRebuilder | The IIndexRebuilder instance used to rebuild the indexes if required. |
SuspendIndexers(ILogger)
Suspends the indexers by setting the internal suspended flag and logs the suspension action.
Declaration
public static void SuspendIndexers(ILogger logger)
Parameters
| Type | Name | Description |
|---|---|---|
| ILogger | logger | The logger used to record information about the suspension of the indexers. |