Class DatabaseIntegrityCheck
Health check for the integrity of the data in the database.
Namespace: Umbraco.Cms.Core.HealthChecks.Checks.Data
Assembly: Umbraco.Core.dll
Syntax
public class DatabaseIntegrityCheck : HealthCheck, IDiscoverable
Constructors
View SourceDatabaseIntegrityCheck(IContentService, IMediaService)
Initializes a new instance of the DatabaseIntegrityCheck class.
Declaration
public DatabaseIntegrityCheck(IContentService contentService, IMediaService mediaService)
Parameters
Type | Name | Description |
---|---|---|
IContentService | contentService | |
IMediaService | mediaService |
Methods
View SourceExecuteAction(HealthCheckAction)
Executes the action and returns it's status
Declaration
public override HealthCheckStatus ExecuteAction(HealthCheckAction action)
Parameters
Type | Name | Description |
---|---|---|
HealthCheckAction | action |
Returns
Type | Description |
---|---|
HealthCheckStatus |
GetStatus()
Get the status for this health check
Declaration
public override Task<IEnumerable<HealthCheckStatus>> GetStatus()
Returns
Type | Description |
---|---|
Task<IEnumerable<HealthCheckStatus>> |