Class HttpsCheck
Health checks for the recommended production setup regarding HTTPS.
Namespace: Umbraco.Cms.Core.HealthChecks.Checks.Security
Assembly: Umbraco.Core.dll
Syntax
public class HttpsCheck : HealthCheck, IDiscoverable
Constructors
View SourceHttpsCheck(ILocalizedTextService, IOptionsMonitor<GlobalSettings>, IHostingEnvironment)
Initializes a new instance of the Https
Declaration
public HttpsCheck(ILocalizedTextService textService, IOptionsMonitor<GlobalSettings> globalSettings, IHostingEnvironment hostingEnvironment)
Parameters
| Type | Name | Description |
|---|---|---|
| ILocalized |
textService | The text service. |
| IOptions |
globalSettings | The global settings. |
| IHosting |
hostingEnvironment | The hosting environment. |
Methods
View SourceExecuteAction(HealthCheckAction)
Executes the action and returns it's status
Declaration
public override HealthCheckStatus ExecuteAction(HealthCheckAction action)
Parameters
| Type | Name | Description |
|---|---|---|
| Health |
action |
Returns
| Type | Description |
|---|---|
| Health |
GetStatus()
Get the status for this health check
Declaration
public override async Task<IEnumerable<HealthCheckStatus>> GetStatus()
Returns
| Type | Description |
|---|---|
| Task<IEnumerable<Health |
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.