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 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 SourceExecuteAction(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 |
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.