UserStoreBase<TUser,TKey,TUserClaim,TUserLogin,TUserToken>.IncrementAccessFailedCountAsync(TUser, CancellationToken) Method

Definition

Records that a failed access has occurred, incrementing the failed access count.

public virtual System.Threading.Tasks.Task<int> IncrementAccessFailedCountAsync (TUser user, System.Threading.CancellationToken cancellationToken = default);
abstract member IncrementAccessFailedCountAsync : 'User * System.Threading.CancellationToken -> System.Threading.Tasks.Task<int>
override this.IncrementAccessFailedCountAsync : 'User * System.Threading.CancellationToken -> System.Threading.Tasks.Task<int>
Public Overridable Function IncrementAccessFailedCountAsync (user As TUser, Optional cancellationToken As CancellationToken = Nothing) As Task(Of Integer)

Parameters

user
TUser

The user whose cancellation count should be incremented.

cancellationToken
CancellationToken

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

Returns

Task<Int32>

The Task that represents the asynchronous operation, containing the incremented failed access count.

Implements

Applies to