Show / Hide Table of Contents

Interface IPersonEmailStore<TPerson>

Provides an abstraction for the storage and management of person email addresses.

Inherited Members
IPersonStore<TPerson>.FindByIdAsync(Guid, CancellationToken)
IPersonStore<TPerson>.CreateAsync(TPerson, CancellationToken)
IPersonStore<TPerson>.DeleteAsync(TPerson, CancellationToken)
IPersonStore<TPerson>.UpdateAsync(TPerson, CancellationToken)
System.IDisposable.Dispose()
IUseExecutionStrategy.Suspended
IUseExecutionStrategy.Strategy
Namespace: IRM.AspNetCore.Identity
Assembly: IRM.AspNetCore.Identity.dll
Syntax
public interface IPersonEmailStore<TPerson> : IPersonStore<TPerson>, IDisposable, IUseExecutionStrategy where TPerson : class, IPerson
Type Parameters
TPerson

The type encapsulating a person.

Methods

FindByEmailAsync(String, CancellationToken)

Gets the person, if any, associated with the specified, email address.

Declaration
Task<TPerson> FindByEmailAsync(string email, CancellationToken cancellationToken)
Parameters
String email

The email address to return the person for.

System.Threading.CancellationToken cancellationToken

The System.Threading.CancellationToken used to propagate notifications that the operation should be canceled.

Returns
System.Threading.Tasks.Task<TPerson>

The task object containing the results of the asynchronous lookup operation, the person if any associated with the specified email address.

FindPersonsByEmailAsync(String, CancellationToken)

Finds and returns one or more persons, if any, who has the specified email address.

Declaration
Task<List<TPerson>> FindPersonsByEmailAsync(string email, CancellationToken cancellationToken)
Parameters
String email

The email address to search for.

System.Threading.CancellationToken cancellationToken

The System.Threading.CancellationToken used to propagate notifications that the operation should be canceled.

Returns
System.Threading.Tasks.Task<List<TPerson>>

The System.Threading.Tasks.Task that represents the asynchronous operation, containing the persons matching the specified email if it exists.

Back to top Generated by DocFX