Compartir a través de


OutputCacheServiceCollectionExtensions.AddOutputCache Método

Definición

Sobrecargas

AddOutputCache(IServiceCollection)

Agregar servicios de almacenamiento en caché de salida.

AddOutputCache(IServiceCollection, Action<OutputCacheOptions>)

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

AddOutputCache(IServiceCollection)

Source:
OutputCacheServiceCollectionExtensions.cs

Agregar servicios de almacenamiento en caché de salida.

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

Parámetros

services
IServiceCollection

El IServiceCollection para agregar servicios.

Devoluciones

Se aplica a

AddOutputCache(IServiceCollection, Action<OutputCacheOptions>)

Source:
OutputCacheServiceCollectionExtensions.cs

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

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

Parámetros

services
IServiceCollection

El IServiceCollection para agregar servicios.

configureOptions
Action<OutputCacheOptions>

Delegado para configurar el OutputCacheOptions.

Devoluciones

Se aplica a