Compartilhar via


ResponseCachingServicesExtensions.AddResponseCaching Método

Definição

Sobrecargas

AddResponseCaching(IServiceCollection)

Adicionar serviços de cache de resposta.

AddResponseCaching(IServiceCollection, Action<ResponseCachingOptions>)

Adicione serviços de cache de resposta e configure as opções relacionadas.

AddResponseCaching(IServiceCollection)

Origem:
ResponseCachingServicesExtensions.cs
Origem:
ResponseCachingServicesExtensions.cs
Origem:
ResponseCachingServicesExtensions.cs

Adicionar serviços de cache de resposta.

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

O IServiceCollection para adicionar serviços.

Retornos

Aplica-se a

AddResponseCaching(IServiceCollection, Action<ResponseCachingOptions>)

Origem:
ResponseCachingServicesExtensions.cs
Origem:
ResponseCachingServicesExtensions.cs
Origem:
ResponseCachingServicesExtensions.cs

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

O IServiceCollection para adicionar serviços.

configureOptions
Action<ResponseCachingOptions>

Um delegado para configurar o ResponseCachingOptions.

Retornos

Aplica-se a