Search Results for

    Show / Hide Table of Contents
    View Source

    Class AbstractSettingsCheck

    Provides a base class for health checks of configuration values.

    Inheritance
    System.Object
    HealthCheck
    Namespace: Umbraco.Cms.Core.HealthChecks.Checks
    Assembly: Umbraco.Core.dll
    Syntax
    public abstract class AbstractSettingsCheck : HealthCheck, IDiscoverable

    Constructors

    View Source

    AbstractSettingsCheck(ILocalizedTextService)

    Initializes a new instance of the AbstractSettingsCheck class.

    Declaration
    protected AbstractSettingsCheck(ILocalizedTextService textService)
    Parameters
    Type Name Description
    ILocalizedTextService textService

    Properties

    View Source

    CheckErrorMessage

    Gets the message for when the check has failed.

    Declaration
    public virtual string CheckErrorMessage { get; }
    Property Value
    Type Description
    System.String
    View Source

    CheckSuccessMessage

    Gets the message for when the check has succeeded.

    Declaration
    public virtual string CheckSuccessMessage { get; }
    Property Value
    Type Description
    System.String
    View Source

    CurrentValue

    Gets the current value of the config setting

    Declaration
    public abstract string CurrentValue { get; }
    Property Value
    Type Description
    System.String
    View Source

    ItemPath

    Gets key within the JSON to check, in the colon-delimited format https://docs.microsoft.com/en-us/aspnet/core/fundamentals/configuration/?view=aspnetcore-3.1

    Declaration
    public abstract string ItemPath { get; }
    Property Value
    Type Description
    System.String
    View Source

    LocalizedTextService

    Gets the localized text service.

    Declaration
    protected ILocalizedTextService LocalizedTextService { get; }
    Property Value
    Type Description
    ILocalizedTextService
    View Source

    ReadMoreLink

    Gets a link to an external resource with more information.

    Declaration
    public abstract string ReadMoreLink { get; }
    Property Value
    Type Description
    System.String
    View Source

    ValueComparisonType

    Gets the comparison type for checking the value.

    Declaration
    public abstract ValueComparisonType ValueComparisonType { get; }
    Property Value
    Type Description
    ValueComparisonType
    View Source

    Values

    Gets the values to compare against.

    Declaration
    public abstract IEnumerable<AcceptableConfiguration> Values { get; }
    Property Value
    Type Description
    IEnumerable<AcceptableConfiguration>

    Methods

    View Source

    ExecuteAction(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
    View Source

    GetStatus()

    Get the status for this health check

    Declaration
    public override Task<IEnumerable<HealthCheckStatus>> GetStatus()
    Returns
    Type Description
    Task<IEnumerable<HealthCheckStatus>>
    Remarks

    If there are possible actions to take to rectify this check, this method must be overridden by a sub class in order to explicitly provide those actions.

    • Improve this Doc
    • View Source
    In This Article
    • Constructors
      • AbstractSettingsCheck(ILocalizedTextService)
    • Properties
      • CheckErrorMessage
      • CheckSuccessMessage
      • CurrentValue
      • ItemPath
      • LocalizedTextService
      • ReadMoreLink
      • ValueComparisonType
      • Values
    • Methods
      • ExecuteAction(HealthCheckAction)
      • GetStatus()
    Back to top Copyright © 2016-present Umbraco
    Generated by DocFX