View Source
Provides a base class for health checks of http header values.
Inheritance
System.Object
Assembly: Umbraco.Core.dll
public abstract class BaseHttpHeaderCheck : HealthCheck, IDiscoverable
Constructors
View Source
Declaration
protected BaseHttpHeaderCheck(IHostingEnvironment hostingEnvironment, ILocalizedTextService textService, string header, string localizedTextPrefix, bool metaTagOptionAvailable)
Parameters
View Source
Declaration
protected BaseHttpHeaderCheck(IHostingEnvironment hostingEnvironment, ILocalizedTextService textService, string header, string localizedTextPrefix, bool metaTagOptionAvailable, bool shouldNotExist)
Parameters
Type |
Name |
Description |
IHostingEnvironment |
hostingEnvironment |
|
ILocalizedTextService |
textService |
|
System.String |
header |
|
System.String |
localizedTextPrefix |
|
System.Boolean |
metaTagOptionAvailable |
|
System.Boolean |
shouldNotExist |
|
Properties
View Source
Declaration
protected ILocalizedTextService LocalizedTextService { get; }
Property Value
View Source
Gets a link to an external read more page.
Declaration
protected abstract string ReadMoreLink { get; }
Property Value
Type |
Description |
System.String |
|
Methods
View Source
The actual health check method.
Declaration
protected async Task<HealthCheckStatus> CheckForHeader()
Returns
View Source
Executes the action and returns it's status
Declaration
public override HealthCheckStatus ExecuteAction(HealthCheckAction action)
Parameters
Returns
View Source
Get the status for this health check
Declaration
public override async Task<IEnumerable<HealthCheckStatus>> GetStatus()
Returns