Class SmtpCheck
Health check for the recommended setup regarding SMTP.
Namespace: Umbraco.Cms.Core.HealthChecks.Checks.Services
Assembly: Umbraco.Core.dll
Syntax
public class SmtpCheck : HealthCheck, IDiscoverable
Constructors
View SourceSmtpCheck(ILocalizedTextService, IOptionsMonitor<GlobalSettings>)
Initializes a new instance of the SmtpCheck class.
Declaration
public SmtpCheck(ILocalizedTextService textService, IOptionsMonitor<GlobalSettings> globalSettings)
Parameters
Type | Name | Description |
---|---|---|
ILocalizedTextService | textService | |
IOptionsMonitor<GlobalSettings> | globalSettings |
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 Task<IEnumerable<HealthCheckStatus>> GetStatus()
Returns
Type | Description |
---|---|
Task<IEnumerable<HealthCheckStatus>> |