MicrosoftIdentityAppCallsWebApiAuthenticationBuilder.AddInMemoryTokenCaches Metodo
Definizione
Importante
Alcune informazioni sono relative alla release non definitiva del prodotto, che potrebbe subire modifiche significative prima della release definitiva. Microsoft non riconosce alcuna garanzia, espressa o implicita, in merito alle informazioni qui fornite.
Aggiungere nella cache dei token di memoria, se non è già stata aggiunta alcuna altra implementazione di IMsalTokenCacheProvider.
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
Parametri
- configureOptions
- Action<MsalMemoryTokenCacheOptions>
MsalMemoryTokenCacheOptions per configurare.
- memoryCacheOptions
- Action<MemoryCacheOptions>
MemoryCacheOptions per configurare.
Valori restituiti
raccolta di servizi.