This documentation is archived and is not being maintained.

LocalServiceSecuritySettings.SessionKeyRolloverInterval Property

Gets or sets the time interval after key renewal for which the previous session key is valid on incoming messages during a key renewal.

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

public TimeSpan SessionKeyRolloverInterval { get; set; }

Property Value

Type: System.TimeSpan
The time interval after key renewal for which the previous session key is valid on incoming messages after a key renewal. The default is 5 minutes.

ExceptionCondition
ArgumentOutOfRangeException

The property is set to a value less than 0.

After key renewal, the client and server should always send messages using the most current available key. Both parties can accept incoming messages secured with the previous session key until the rollover time expires.

Session settings such as this one are applicable under any of the following conditions:

Session settings such as this one are not applicable under any of the following conditions:

This example shows how get the SessionKeyRolloverInterval value.


TimeSpan rolloverInterval =
    settings.SessionKeyRolloverInterval;


.NET Framework

Supported in: 4, 3.5, 3.0

.NET Framework Client Profile

Supported in: 4, 3.5 SP1

Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.
Show: