Språk

MicrosoftIdentityAppCallsWebApiAuthenticationBuilder.AddInMemoryTokenCaches Metod

Definition

Lägg till minnestokencacheminnen om ingen annan implementering av IMsalTokenCacheProvider redan har lagts till.

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

Parametrar

configureOptions
Action<MsalMemoryTokenCacheOptions>

MsalMemoryTokenCacheOptions för att konfigurera.

memoryCacheOptions
Action<MemoryCacheOptions>

MemoryCacheOptions för att konfigurera.

Returer

tjänstsamlingen.

Gäller för