IUserLockoutStore<TUser> Interface
Definition
Provides an abstraction for a storing information which can be used to implement account lockout, including access failures and lockout status
generic <typename TUser>
where TUser : classpublic interface class IUserLockoutStore : IDisposable, Microsoft::AspNetCore::Identity::IUserStore<TUser>
public interface IUserLockoutStore<TUser> : IDisposable, Microsoft.AspNetCore.Identity.IUserStore<TUser> where TUser : class
type IUserLockoutStore<'User (requires 'User : null)> = interface
interface IUserStore<'User (requires 'User : null)>
interface IDisposable
Public Interface IUserLockoutStore(Of TUser)
Implements IDisposable, IUserStore(Of TUser)
Type Parameters
- TUser
The type that represents a user.
- Derived
- Implements
Methods
CreateAsync(TUser, CancellationToken) |
Creates the specified |
DeleteAsync(TUser, CancellationToken) |
Deletes the specified |
FindByIdAsync(String, CancellationToken) |
Finds and returns a user, if any, who has the specified |
FindByNameAsync(String, CancellationToken) |
Finds and returns a user, if any, who has the specified normalized user name. (Inherited from IUserStore<TUser>) |
GetAccessFailedCountAsync(TUser, CancellationToken) |
Retrieves the current failed access count for the specified |
GetLockoutEnabledAsync(TUser, CancellationToken) |
Retrieves a flag indicating whether user lockout can enabled for the specified user. |
GetLockoutEndDateAsync(TUser, CancellationToken) |
Gets the last DateTimeOffset a user's last lockout expired, if any. Any time in the past should be indicates a user is not locked out. |
GetNormalizedUserNameAsync(TUser, CancellationToken) |
Gets the normalized user name for the specified |
GetUserIdAsync(TUser, CancellationToken) |
Gets the user identifier for the specified |
GetUserNameAsync(TUser, CancellationToken) |
Gets the user name for the specified |
IncrementAccessFailedCountAsync(TUser, CancellationToken) |
Records that a failed access has occurred, incrementing the failed access count. |
ResetAccessFailedCountAsync(TUser, CancellationToken) |
Resets a user's failed access count. |
SetLockoutEnabledAsync(TUser, Boolean, CancellationToken) |
Set the flag indicating if the specified |
SetLockoutEndDateAsync(TUser, Nullable<DateTimeOffset>, CancellationToken) |
Locks out a user until the specified end date has passed. Setting a end date in the past immediately unlocks a user. |
SetNormalizedUserNameAsync(TUser, String, CancellationToken) |
Sets the given normalized name for the specified |
SetUserNameAsync(TUser, String, CancellationToken) |
Sets the given |
UpdateAsync(TUser, CancellationToken) |
Updates the specified |