Class SimpleInviteUserEmailSender
A very simple text-based implementation of IInviteUserEmailSender.
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 SimpleInviteUserEmailSender : IInviteUserEmailSender
Constructors
SimpleInviteUserEmailSender(IEmailSender, IOptions<DataProtectionTokenProviderOptions>)
Creates a new instance of SimpleInviteUserEmailSender.
Declaration
public SimpleInviteUserEmailSender(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(InviteUserEmailViewModel)
Sends an invitation e-mail message to a reciever.
Declaration
public Task SendAsync(InviteUserEmailViewModel viewModel)
Parameters
InviteUserEmailViewModel
viewModel
The InviteUserEmailViewModel with information for creating invitation e-mails. |
Returns
System.Threading.Tasks.Task
The task object representing the asynchronous operation. |