UserStoreBase<TUser,TKey,TUserClaim,TUserLogin,TUserToken>.IncrementAccessFailedCountAsync(TUser, CancellationToken) 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 = null);
abstract member IncrementAccessFailedCountAsync : 'User * System.Threading.CancellationToken -> System.Threading.Tasks.Task<int>
override this.IncrementAccessFailedCountAsync : 'User * System.Threading.CancellationToken -> System.Threading.Tasks.Task<int>

Parameters

user
TUser TUser

The user whose cancellation count should be incremented.

cancellationToken
CancellationToken CancellationToken

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

Returns

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

Implements

Applies to