Search Results for

    Show / Hide Table of Contents
    View Source

    Class EmailNotificationMethod

    A health check notification method that sends results via email.

    Inheritance
    object
    NotificationMethodBase
    Namespace: Umbraco.Cms.Core.HealthChecks.NotificationMethods
    Assembly: Umbraco.Core.dll
    Syntax
    [HealthCheckNotificationMethod("email")]
    public class EmailNotificationMethod : NotificationMethodBase, IHealthCheckNotificationMethod, IDiscoverable

    Constructors

    View Source

    EmailNotificationMethod(ILocalizedTextService, IHostingEnvironment, IEmailSender, IOptionsMonitor<HealthChecksSettings>, IOptionsMonitor<ContentSettings>, IMarkdownToHtmlConverter)

    Initializes a new instance of the EmailNotificationMethod class.

    Declaration
    public EmailNotificationMethod(ILocalizedTextService textService, IHostingEnvironment hostingEnvironment, IEmailSender emailSender, IOptionsMonitor<HealthChecksSettings> healthChecksSettings, IOptionsMonitor<ContentSettings> contentSettings, IMarkdownToHtmlConverter markdownToHtmlConverter)
    Parameters
    Type Name Description
    ILocalizedTextService textService

    The localized text service.

    IHostingEnvironment hostingEnvironment

    The hosting environment.

    IEmailSender emailSender

    The email sender service.

    IOptionsMonitor<HealthChecksSettings> healthChecksSettings

    The health checks settings monitor.

    IOptionsMonitor<ContentSettings> contentSettings

    The content settings monitor.

    IMarkdownToHtmlConverter markdownToHtmlConverter

    The markdown to HTML converter.

    Properties

    View Source

    RecipientEmail

    Gets the recipient email address for health check notifications.

    Declaration
    public string? RecipientEmail { get; }
    Property Value
    Type Description
    string

    Methods

    View Source

    SendAsync(HealthCheckResults)

    Sends the health check results via this notification method.

    Declaration
    public override Task SendAsync(HealthCheckResults results)
    Parameters
    Type Name Description
    HealthCheckResults results

    The health check results to send.

    Returns
    Type Description
    Task

    A task representing the asynchronous operation.

    • View Source
    In this article
    Back to top Copyright © 2016-present Umbraco
    Generated by DocFX