Class UseHttpsValidator
Validates whether HTTPS is enforced when in production runtime mode.
Namespace: Umbraco.Cms.Infrastructure.Runtime.RuntimeModeValidators
Assembly: Umbraco.Infrastructure.dll
Syntax
public class UseHttpsValidator : RuntimeModeProductionValidatorBase, IRuntimeModeValidator
Constructors
View SourceUseHttpsValidator(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 SourceValidate(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 |
|