Windows apps
Collapse the table of content
Expand the table of content
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

LocalClientSecuritySettings::ReplayCacheSize Property

 

Gets or sets the number of cached nonces used for replay detection.

Namespace:   System.ServiceModel.Channels
Assembly:  System.ServiceModel (in System.ServiceModel.dll)

public:
property int ReplayCacheSize {
	int get();
	void set(int value);
}

Property Value

Type: System::Int32

The number of cached nonces used for replay detection. The default is 900000.

A nonce is a "number used once", often a random number used in an authentication protocol to ensure that old communications cannot be used in an attack by using replays.

If the nonce count is exceeded, the incoming message is rejected and a MessageSecurityException is thrown. Old nonces are removed in a timely manner.

This example shows how to get the number of cached nonces to use for replay detection.

No code example is currently available or this language may not be supported.

.NET Framework
Available since 3.0
Return to top
Show:
© 2017 Microsoft