Fixes email sending notifications so they are checked if they are handled.

This commit is contained in:
Shannon
2021-08-09 13:42:08 -06:00
parent 53bc53a377
commit ab84490535
2 changed files with 51 additions and 30 deletions

View File

@@ -7,5 +7,15 @@ namespace Umbraco.Cms.Core.Notifications
public SendEmailNotification(NotificationEmailModel message) => Message = message;
public NotificationEmailModel Message { get; }
/// <summary>
/// Call to tell Umbraco that the email sending is handled.
/// </summary>
public void HandleEmail() => IsHandled = true;
/// <summary>
/// Returns true if the email sending is handled.
/// </summary>
public bool IsHandled { get; private set; }
}
}