Show / Hide Table of Contents

Class SimpleConfirmAccountEmailSender

A very simple text-based implementation of IConfirmAccountEmailSender.

Inheritance
Object
SimpleConfirmAccountEmailSender
Inherited Members
Object.Equals(Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
Object.MemberwiseClone()
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.

Implements
IConfirmAccountEmailSender.SendAsync(ConfirmAccountEmailViewModel)
Back to top Generated by DocFX