Search Results for

    Show / Hide Table of Contents
    View Source

    Class HttpsCheck

    Health checks for the recommended production setup regarding HTTPS.

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

    Constructors

    View Source

    HttpsCheck(ILocalizedTextService, IOptionsMonitor<GlobalSettings>, IHostingEnvironment)

    Initializes a new instance of the HttpsCheck class.

    Declaration
    public HttpsCheck(ILocalizedTextService textService, IOptionsMonitor<GlobalSettings> globalSettings, IHostingEnvironment hostingEnvironment)
    Parameters
    Type Name Description
    ILocalizedTextService textService

    The text service.

    IOptionsMonitor<GlobalSettings> globalSettings

    The global settings.

    IHostingEnvironment hostingEnvironment

    The hosting environment.

    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 async 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
      • HttpsCheck(ILocalizedTextService, IOptionsMonitor<GlobalSettings>, IHostingEnvironment)
    • Methods
      • ExecuteAction(HealthCheckAction)
      • GetStatus()
    Back to top Copyright © 2016-present Umbraco
    Generated by DocFX