Share via


DistributedTokenCacheAdapterExtension.AddDistributedTokenCaches Method

Definition

Adds the .NET Core distributed cache based app token cache to the service collection.

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

Parameters

services
IServiceCollection

The services collection to add to.

Returns

A IServiceCollection to chain.

Applies to