IssuedTokenClientCredential.MaxIssuedTokenCachingTime Property

Definition

Gets or sets the maximum caching time for an issued token.

C#
public TimeSpan MaxIssuedTokenCachingTime { get; set; }

Property Value

A TimeSpan that represents the maximum caching time for an issued token. The default value is TimeSpan.MaxValue.

Exceptions

The value of set is less than zero.

An attempt was made to set a read-only credential.

Examples

This code shows how to set this property.

C#
itcc.MaxIssuedTokenCachingTime = new TimeSpan(0, 10, 0);

Remarks

By default, issued tokens obtained from the Security Token Service are cached by the WCF client channel. This property enables the application to specify the maximum time that the channel caches the issued token.

Applies to

Product Versions
.NET Framework 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1