ResponseCachingServicesExtensions.AddResponseCaching Método
Definição
Importante
Algumas informações se referem a produtos de pré-lançamento que podem ser substancialmente modificados antes do lançamento. A Microsoft não oferece garantias, expressas ou implícitas, das informações aqui fornecidas.
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)
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>)
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.