Table of Contents

TryGetEntry Method

Definition

Namespace
Cuemon.AspNetCore.Authentication
Assemblies
Cuemon.AspNetCore.Authentication.dll
Source
src/Cuemon.AspNetCore.Authentication/MemoryNonceTracker.cs

TryGetEntry(string, out NonceTrackerEntry)

Attempts to get the NonceTrackerEntry associated with the specified nonce from the tracker.

public bool TryGetEntry(string nonce, out NonceTrackerEntry entry)

Parameters

nonce string

The unique identifier of the tracker.

entry NonceTrackerEntry

When this method returns, contains the entry associated with the specified nonce, or null if the operation failed.

Returns

bool

true if the entry was found in the tracker; otherwise, false.

Exceptions

ArgumentNullException

nonce cannot be null.

ArgumentException

nonce cannot be empty or consist only of white-space characters.