편집

다음을 통해 공유


NonceCache Class

Definition

An abstract base class that represents a cache for nonces.

public ref class NonceCache abstract
public abstract class NonceCache
type NonceCache = class
Public MustInherit Class NonceCache
Inheritance
NonceCache

Notes to Implementers

You must override the CheckNonce(Byte[]) and TryAddNonce(Byte[]) methods.

Constructors

NonceCache()

Called from constructors in derived classes to initialize the NonceCache class.

Properties

CacheSize

Gets or sets the maximum size of the cache specified as the number of nonces that the cache can contain.

CachingTimeSpan

Gets or sets the maximum timespan after which a nonce is deleted from the cache.

Methods

CheckNonce(Byte[])

When overridden in a derived class, returns a value that indicates whether the specified nonce is already in the cache.

Equals(Object)

Determines whether the specified object is equal to the current object.

(Inherited from Object)
GetHashCode()

Serves as the default hash function.

(Inherited from Object)
GetType()

Gets the Type of the current instance.

(Inherited from Object)
MemberwiseClone()

Creates a shallow copy of the current Object.

(Inherited from Object)
ToString()

Returns a string that represents the current object.

(Inherited from Object)
TryAddNonce(Byte[])

When overridden in a derived class, attempts to add the specified nonce to the cache.

Applies to