MicrosoftIdentityAppCallsWebApiAuthenticationBuilder.AddInMemoryTokenCaches メソッド

定義

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

パラメーター

configureOptions
Action<MsalMemoryTokenCacheOptions>

MsalMemoryTokenCacheOptions を選択して構成します。

memoryCacheOptions
Action<MemoryCacheOptions>

MemoryCacheOptions を選択して構成します。

返品

サービス コレクション。

適用対象