Class SimpleConfirmAccountEmailSender
A very simple text-based implementation of IConfirmAccountEmailSender.
Inherited Members
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: IRM.AspNetCore.Identity.Mail
Assembly: IRM.AspNetCore.Identity.Mail.dll
Syntax
public class SimpleConfirmAccountEmailSender : IConfirmAccountEmailSender
Constructors
SimpleConfirmAccountEmailSender(IEmailSender, IOptions<DataProtectionTokenProviderOptions>)
Creates a new instance of SimpleConfirmAccountEmailSender.
Declaration
public SimpleConfirmAccountEmailSender(IEmailSender sender, IOptions<DataProtectionTokenProviderOptions> dataProtectionOptions)
Parameters
IEmailSender
sender
The IEmailSender used to send e-mails. |
Microsoft.Extensions.Options.IOptions<Microsoft.AspNetCore.Identity.DataProtectionTokenProviderOptions>
dataProtectionOptions
The Microsoft.AspNetCore.Identity.DataProtectionTokenProviderOptions used to determine for how long the url will be valid. |
Methods
SendAsync(ConfirmAccountEmailViewModel)
Sends a confirmation e-mail message to a reciever.
Declaration
public Task SendAsync(ConfirmAccountEmailViewModel viewModel)
Parameters
ConfirmAccountEmailViewModel
viewModel
The ConfirmAccountEmailViewModel with information for creating confirmation e-mails. |
Returns
System.Threading.Tasks.Task
The task object representing the asynchronous operation. |