WindowsAuthenticationElement.DefaultCredentialsHandleCacheSize Propriedade

Definição

Define o tamanho padrão da cache do handle de credenciais do Windows.

public:
 property int DefaultCredentialsHandleCacheSize { int get(); void set(int value); };
[System.Configuration.ConfigurationProperty("defaultCredentialsHandleCacheSize", DefaultValue=0)]
public int DefaultCredentialsHandleCacheSize { get; set; }
[<System.Configuration.ConfigurationProperty("defaultCredentialsHandleCacheSize", DefaultValue=0)>]
member this.DefaultCredentialsHandleCacheSize : int with get, set
Public Property DefaultCredentialsHandleCacheSize As Integer

Valor de Propriedade

O tamanho padrão da cache do handle de credenciais do Windows.

Atributos

Observações

Por defeito, o valor de defaultCredentialsHandleCacheSize é 0. Isto faz com que Windows atribua um handle SSPI separado para cada HttpWebRequest.

<system.net>
  <settings>
    <windowsAuthentication defaultCredentialsHandleCacheSize="0" />
  </settings>
</system.net>

Se este comportamento afetar o desempenho, defina DefaultCredentialsHandleCacheSize um valor superior a 0 para usar um único handle de credencial SSPI em cache para credenciais de rede padrão. O valor exato depende dos requisitos da candidatura. Geralmente, um valor entre 50 e 100 funciona para a maioria das aplicações de alto desempenho.

Aplica-se a