IUserLockoutStore<TUser>.IncrementAccessFailedCountAsync(TUser, CancellationToken) IUserLockoutStore<TUser>.IncrementAccessFailedCountAsync(TUser, CancellationToken) IUserLockoutStore<TUser>.IncrementAccessFailedCountAsync(TUser, CancellationToken) Method

Definition

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

public:
 System::Threading::Tasks::Task<int> ^ IncrementAccessFailedCountAsync(TUser user, System::Threading::CancellationToken cancellationToken);
public System.Threading.Tasks.Task<int> IncrementAccessFailedCountAsync (TUser user, System.Threading.CancellationToken cancellationToken);
abstract member IncrementAccessFailedCountAsync : 'User * System.Threading.CancellationToken -> System.Threading.Tasks.Task<int>

Parameters

user

The user whose cancellation count should be incremented.

cancellationToken
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.

Applies to