Share via


InMemoryTokenCacheProviderExtension.AddInMemoryTokenCaches Method

Definition

Adds both the app and per-user in-memory token caches.

public static Microsoft.Extensions.DependencyInjection.IServiceCollection AddInMemoryTokenCaches (this Microsoft.Extensions.DependencyInjection.IServiceCollection services);
static member AddInMemoryTokenCaches : Microsoft.Extensions.DependencyInjection.IServiceCollection -> Microsoft.Extensions.DependencyInjection.IServiceCollection
<Extension()>
Public Function AddInMemoryTokenCaches (services As IServiceCollection) As IServiceCollection

Parameters

services
IServiceCollection

The services collection to add to.

Returns

the services (for chaining).

Applies to