Condividi tramite


ResponseCachingServicesExtensions.AddResponseCaching Metodo

Definizione

Overload

AddResponseCaching(IServiceCollection)

Aggiungere servizi di memorizzazione nella cache delle risposte.

AddResponseCaching(IServiceCollection, Action<ResponseCachingOptions>)

Aggiungere servizi di memorizzazione nella cache delle risposte e configurare le opzioni correlate.

AddResponseCaching(IServiceCollection)

Origine:
ResponseCachingServicesExtensions.cs
Origine:
ResponseCachingServicesExtensions.cs
Origine:
ResponseCachingServicesExtensions.cs

Aggiungere servizi di memorizzazione nella cache delle risposte.

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

Parametri

services
IServiceCollection

Oggetto per l'aggiunta IServiceCollection di servizi.

Restituisce

Si applica a

AddResponseCaching(IServiceCollection, Action<ResponseCachingOptions>)

Origine:
ResponseCachingServicesExtensions.cs
Origine:
ResponseCachingServicesExtensions.cs
Origine:
ResponseCachingServicesExtensions.cs

Aggiungere servizi di memorizzazione nella cache delle risposte e configurare le opzioni correlate.

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

Parametri

services
IServiceCollection

Oggetto per l'aggiunta IServiceCollection di servizi.

configureOptions
Action<ResponseCachingOptions>

Delegato per la configurazione dell'oggetto ResponseCachingOptions.

Restituisce

Si applica a