MsalDistributedTokenCacheAdapter Constructeur
Définition
Important
Certaines informations portent sur la préversion du produit qui est susceptible d’être en grande partie modifiée avant sa publication. Microsoft exclut toute garantie, expresse ou implicite, concernant les informations fournies ici.
Initialise une nouvelle instance de la classe MsalDistributedTokenCacheAdapter.
public MsalDistributedTokenCacheAdapter(Microsoft.Extensions.Caching.Distributed.IDistributedCache distributedCache, Microsoft.Extensions.Options.IOptions<Microsoft.Identity.Web.TokenCacheProviders.Distributed.MsalDistributedTokenCacheAdapterOptions> distributedCacheOptions, Microsoft.Extensions.Logging.ILogger<Microsoft.Identity.Web.TokenCacheProviders.Distributed.MsalDistributedTokenCacheAdapter> logger, IServiceProvider? serviceProvider = default);
new Microsoft.Identity.Web.TokenCacheProviders.Distributed.MsalDistributedTokenCacheAdapter : Microsoft.Extensions.Caching.Distributed.IDistributedCache * Microsoft.Extensions.Options.IOptions<Microsoft.Identity.Web.TokenCacheProviders.Distributed.MsalDistributedTokenCacheAdapterOptions> * Microsoft.Extensions.Logging.ILogger<Microsoft.Identity.Web.TokenCacheProviders.Distributed.MsalDistributedTokenCacheAdapter> * IServiceProvider -> Microsoft.Identity.Web.TokenCacheProviders.Distributed.MsalDistributedTokenCacheAdapter
Public Sub New (distributedCache As IDistributedCache, distributedCacheOptions As IOptions(Of MsalDistributedTokenCacheAdapterOptions), logger As ILogger(Of MsalDistributedTokenCacheAdapter), Optional serviceProvider As IServiceProvider = Nothing)
Paramètres
- distributedCache
- IDistributedCache
Instance de cache distribuée à utiliser.
- distributedCacheOptions
- IOptions<MsalDistributedTokenCacheAdapterOptions>
Options pour le cache de jetons.
Enregistreur d’événements MsalDistributedTokenCacheAdapter.
- serviceProvider
- IServiceProvider
Fournisseur. Peut être null, auquel cas le cache de jetons ne sera pas chiffré. Voir https://aka.ms/ms-id-web/token-cache-encryption.