/// Sets the <paramref name="email" /> address for a <paramref name="user" />.
/// </summary>
/// <param name="user">The user whose email should be set.</param>
/// <param name="email">The email to set.</param>
/// <param name="cancellationToken">The <see cref="T:System.Threading.CancellationToken" /> used to propagate notifications that the operation should be canceled.</param>
/// <returns>The task object representing the asynchronous operation.</returns>
public override Task SetEmailAsync(IdentityUser user, string email, CancellationToken cancellationToken = new CancellationToken())
{
cancellationToken.ThrowIfCancellationRequested();
Check.NotNull(user, nameof(user));
var t = typeof(IdentityUser);
t.GetProperty(nameof(IdentityUser.Email))
.SetValue(user, email, null);
return Task.CompletedTask;
}
}
public override void ConfigureServices(ServiceConfigurationContext context)