Compartir a través de


ResponseCachingServicesExtensions.AddResponseCaching Método

Definición

Sobrecargas

AddResponseCaching(IServiceCollection)

Agregar servicios de almacenamiento en caché de respuesta.

AddResponseCaching(IServiceCollection, Action<ResponseCachingOptions>)

Agregue servicios de almacenamiento en caché de respuesta y configure las opciones relacionadas.

AddResponseCaching(IServiceCollection)

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

Agregar servicios de almacenamiento en caché de respuesta.

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

Parámetros

services
IServiceCollection

IServiceCollection para agregar servicios.

Devoluciones

Se aplica a

AddResponseCaching(IServiceCollection, Action<ResponseCachingOptions>)

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

Agregue servicios de almacenamiento en caché de respuesta y configure las opciones relacionadas.

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

Parámetros

services
IServiceCollection

IServiceCollection para agregar servicios.

configureOptions
Action<ResponseCachingOptions>

Un delegado para configurar la instancia de ResponseCachingOptions.

Devoluciones

Se aplica a