Partager via


ResponseCachingServicesExtensions.AddResponseCaching Méthode

Définition

Surcharges

AddResponseCaching(IServiceCollection)

Ajoutez des services de mise en cache des réponses.

AddResponseCaching(IServiceCollection, Action<ResponseCachingOptions>)

Ajoutez des services de mise en cache de réponse et configurez les options associées.

AddResponseCaching(IServiceCollection)

Source:
ResponseCachingServicesExtensions.cs
Source:
ResponseCachingServicesExtensions.cs
Source:
ResponseCachingServicesExtensions.cs

Ajoutez des services de mise en cache des réponses.

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

Paramètres

services
IServiceCollection

pour l’ajout IServiceCollection de services.

Retours

S’applique à

AddResponseCaching(IServiceCollection, Action<ResponseCachingOptions>)

Source:
ResponseCachingServicesExtensions.cs
Source:
ResponseCachingServicesExtensions.cs
Source:
ResponseCachingServicesExtensions.cs

Ajoutez des services de mise en cache de réponse et configurez les options associées.

public static Microsoft.Extensions.DependencyInjection.IServiceCollection AddResponseCaching (this Microsoft.Extensions.DependencyInjection.IServiceCollection services, Action<Microsoft.AspNetCore.ResponseCaching.ResponseCachingOptions> configureOptions);
static member AddResponseCaching : Microsoft.Extensions.DependencyInjection.IServiceCollection * Action<Microsoft.AspNetCore.ResponseCaching.ResponseCachingOptions> -> Microsoft.Extensions.DependencyInjection.IServiceCollection
<Extension()>
Public Function AddResponseCaching (services As IServiceCollection, configureOptions As Action(Of ResponseCachingOptions)) As IServiceCollection

Paramètres

services
IServiceCollection

pour l’ajout IServiceCollection de services.

configureOptions
Action<ResponseCachingOptions>

Délégué utilisé pour configurer ResponseCachingOptions.

Retours

S’applique à