Język

MicrosoftIdentityAppCallsWebApiAuthenticationBuilder.AddInMemoryTokenCaches Metoda

Definicja

Jeśli nie dodano jeszcze innej implementacji elementu IMsalTokenCacheProvider, dodaj pamięć podręczną tokenu pamięci.

public Microsoft.Identity.Web.MicrosoftIdentityAppCallsWebApiAuthenticationBuilder AddInMemoryTokenCaches(Action<Microsoft.Identity.Web.TokenCacheProviders.InMemory.MsalMemoryTokenCacheOptions>? configureOptions = default, Action<Microsoft.Extensions.Caching.Memory.MemoryCacheOptions>? memoryCacheOptions = default);
member this.AddInMemoryTokenCaches : Action<Microsoft.Identity.Web.TokenCacheProviders.InMemory.MsalMemoryTokenCacheOptions> * Action<Microsoft.Extensions.Caching.Memory.MemoryCacheOptions> -> Microsoft.Identity.Web.MicrosoftIdentityAppCallsWebApiAuthenticationBuilder
Public Function AddInMemoryTokenCaches (Optional configureOptions As Action(Of MsalMemoryTokenCacheOptions) = Nothing, Optional memoryCacheOptions As Action(Of MemoryCacheOptions) = Nothing) As MicrosoftIdentityAppCallsWebApiAuthenticationBuilder

Parametry

configureOptions
Action<MsalMemoryTokenCacheOptions>

MsalMemoryTokenCacheOptions do skonfigurowania.

memoryCacheOptions
Action<MemoryCacheOptions>

MemoryCacheOptions do skonfigurowania.

Zwraca

kolekcja usług.

Dotyczy