Search Results for

    Show / Hide Table of Contents
    View Source

    Class UseHttpsValidator

    Validates whether HTTPS is enforced when in production runtime mode.

    Inheritance
    System.Object
    RuntimeModeProductionValidatorBase
    Namespace: Umbraco.Cms.Infrastructure.Runtime.RuntimeModeValidators
    Assembly: Umbraco.Infrastructure.dll
    Syntax
    public class UseHttpsValidator : RuntimeModeProductionValidatorBase, IRuntimeModeValidator

    Constructors

    View Source

    UseHttpsValidator(IOptionsMonitor<GlobalSettings>)

    Initializes a new instance of the UseHttpsValidator class.

    Declaration
    public UseHttpsValidator(IOptionsMonitor<GlobalSettings> globalSettings)
    Parameters
    Type Name Description
    IOptionsMonitor<GlobalSettings> globalSettings

    The global settings.

    Methods

    View Source

    Validate(out String)

    Validates configuration based on the production runtime mode.

    Declaration
    protected override bool Validate(out string validationErrorMessage)
    Parameters
    Type Name Description
    System.String validationErrorMessage

    The validation error message.

    Returns
    Type Description
    System.Boolean

    true when the validation passes; otherwise, false.

    • Improve this Doc
    • View Source
    In This Article
    • Constructors
      • UseHttpsValidator(IOptionsMonitor<GlobalSettings>)
    • Methods
      • Validate(out String)
    Back to top Copyright © 2016-present Umbraco
    Generated by DocFX