SecurityContextSecurityTokenResolver 构造函数

定义

初始化 SecurityContextSecurityTokenResolver 类的新实例。

重载

SecurityContextSecurityTokenResolver(Int32, Boolean)

初始化 SecurityContextSecurityTokenResolver 类的新实例。

SecurityContextSecurityTokenResolver(Int32, Boolean, TimeSpan)

使用指定的安全上下文缓存容量和最大时钟偏差,初始化 SecurityContextSecurityTokenResolver 类的新实例。

SecurityContextSecurityTokenResolver(Int32, Boolean)

初始化 SecurityContextSecurityTokenResolver 类的新实例。

public:
 SecurityContextSecurityTokenResolver(int securityContextCacheCapacity, bool removeOldestTokensOnCacheFull);
public SecurityContextSecurityTokenResolver (int securityContextCacheCapacity, bool removeOldestTokensOnCacheFull);
new System.ServiceModel.Security.Tokens.SecurityContextSecurityTokenResolver : int * bool -> System.ServiceModel.Security.Tokens.SecurityContextSecurityTokenResolver
Public Sub New (securityContextCacheCapacity As Integer, removeOldestTokensOnCacheFull As Boolean)

参数

securityContextCacheCapacity
Int32

安全上下文的缓存大小。

removeOldestTokensOnCacheFull
Boolean

如果缓存已满时应移除最旧的令牌,则为 true;否则为 false

注解

如果 removeOldestTokensOnCacheFullfalse ,则在 AddContext QuotaExceededException 达到缓存容量时引发。

适用于

SecurityContextSecurityTokenResolver(Int32, Boolean, TimeSpan)

使用指定的安全上下文缓存容量和最大时钟偏差,初始化 SecurityContextSecurityTokenResolver 类的新实例。

public:
 SecurityContextSecurityTokenResolver(int securityContextCacheCapacity, bool removeOldestTokensOnCacheFull, TimeSpan clockSkew);
public SecurityContextSecurityTokenResolver (int securityContextCacheCapacity, bool removeOldestTokensOnCacheFull, TimeSpan clockSkew);
new System.ServiceModel.Security.Tokens.SecurityContextSecurityTokenResolver : int * bool * TimeSpan -> System.ServiceModel.Security.Tokens.SecurityContextSecurityTokenResolver
Public Sub New (securityContextCacheCapacity As Integer, removeOldestTokensOnCacheFull As Boolean, clockSkew As TimeSpan)

参数

securityContextCacheCapacity
Int32

安全上下文的缓存大小。

removeOldestTokensOnCacheFull
Boolean

如果缓存已满时应移除最旧的令牌,则为 true;否则为 false

clockSkew
TimeSpan

客户端与服务器时钟设置之间所允许的最大时间差。

适用于