TryAddEntry Method
Definition
- Namespace
- Cuemon.AspNetCore.Authentication
- Assemblies
- Cuemon.AspNetCore.Authentication.dll
TryAddEntry(string, int)
Attempts to insert a NonceTrackerEntry into the tracker.
public bool TryAddEntry(string nonce, int count)
Parameters
noncestringThe unique identifier of the tracker.
countintThe number or bit string that should be used only once.
Returns
- bool
trueif insertion succeeded; otherwise,falsewhen there is already an entry in the tracker with the same key.
Exceptions
- ArgumentNullException
noncecannot be null.- ArgumentException
noncecannot be empty or consist only of white-space characters.