Construtor TeamFoundationCacheService<TKey, TValue>
Inicializa uma nova instância da classe TeamFoundationCacheService.
Namespace: Microsoft.TeamFoundation.Framework.Server
Assembly: Microsoft.TeamFoundation.Framework.Server (em Microsoft.TeamFoundation.Framework.Server.dll)
Sintaxe
'Declaração
Protected Sub New ( _
comparer As IEqualityComparer(Of TKey), _
cleanupInterval As TimeSpan _
)
protected TeamFoundationCacheService(
IEqualityComparer<TKey> comparer,
TimeSpan cleanupInterval
)
Parâmetros
- comparer
Tipo: System.Collections.Generic.IEqualityComparer<TKey>
O IEqualityComparer (T) de implementação para se usar quando você compara chaves.Não pode ser nulo.
- cleanupInterval
Tipo: System.TimeSpan
Intervalo de limpeza.Determina como o método de OnCleanup é frequentemente chamado.
Segurança do .NET Framework
- Confiança total para o chamador imediato. O membro não pode ser usado por código parcialmente confiável. Para obter mais informações, consulte Usando bibliotecas de código parcialmente confiável.