Compartilhar via


OutputCacheServiceCollectionExtensions.AddOutputCache Método

Definição

Sobrecargas

AddOutputCache(IServiceCollection)

Adicionar serviços de cache de saída.

AddOutputCache(IServiceCollection, Action<OutputCacheOptions>)

Adicione serviços de cache de saída e configure as opções relacionadas.

AddOutputCache(IServiceCollection)

Origem:
OutputCacheServiceCollectionExtensions.cs

Adicionar serviços de cache de saída.

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

O IServiceCollection para adicionar serviços.

Retornos

Aplica-se a

AddOutputCache(IServiceCollection, Action<OutputCacheOptions>)

Origem:
OutputCacheServiceCollectionExtensions.cs

Adicione serviços de cache de saída e configure as opções 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

O IServiceCollection para adicionar serviços.

configureOptions
Action<OutputCacheOptions>

Um delegado para configurar o OutputCacheOptions.

Retornos

Aplica-se a