MicrosoftIdentityAppCallsWebApiAuthenticationBuilder.AddInMemoryTokenCaches Methode

Definition

Fügen Sie Speichertokencaches hinzu, wenn noch keine andere Implementierung von IMsalTokenCacheProvider hinzugefügt wurde.

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

Parameter

configureOptions
Action<MsalMemoryTokenCacheOptions>

MsalMemoryTokenCacheOptions zu konfigurieren.

memoryCacheOptions
Action<MemoryCacheOptions>

MemoryCacheOptions zu konfigurieren.

Gibt zurück

die Dienstauflistung.

Gilt für: