NoOpEmailSender Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
The default IEmailSender that does nothing in SendEmailAsync(String, String, String). It is used to detect that the IEmailSender has been customized. If not, Identity UI provides a development experience where the email confirmation link is rendered by the UI immediately rather than sent via an email.
public sealed class NoOpEmailSender : Microsoft.AspNetCore.Identity.UI.Services.IEmailSender
type NoOpEmailSender = class
interface IEmailSender
Public NotInheritable Class NoOpEmailSender
Implements IEmailSender
- Inheritance
-
NoOpEmailSender
- Implements
Constructors
NoOpEmailSender() |
Methods
SendEmailAsync(String, String, String) |
This method does nothing other return CompletedTask. It should be replaced by a custom implementation in production. |