ResponseCachingServicesExtensions.AddResponseCaching Метод

Определение

Перегрузки

AddResponseCaching(IServiceCollection)

Добавление служб кэширования ответов.

AddResponseCaching(IServiceCollection, Action<ResponseCachingOptions>)

Добавьте службы кэширования ответов и настройте связанные параметры.

AddResponseCaching(IServiceCollection)

Исходный код:
ResponseCachingServicesExtensions.cs
Исходный код:
ResponseCachingServicesExtensions.cs
Исходный код:
ResponseCachingServicesExtensions.cs

Добавление служб кэширования ответов.

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

Параметры

services
IServiceCollection

Для IServiceCollection добавления служб.

Возвращаемое значение

Применяется к

AddResponseCaching(IServiceCollection, Action<ResponseCachingOptions>)

Исходный код:
ResponseCachingServicesExtensions.cs
Исходный код:
ResponseCachingServicesExtensions.cs
Исходный код:
ResponseCachingServicesExtensions.cs

Добавьте службы кэширования ответов и настройте связанные параметры.

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

Параметры

services
IServiceCollection

Для IServiceCollection добавления служб.

configureOptions
Action<ResponseCachingOptions>

Делегат для настройки ResponseCachingOptions.

Возвращаемое значение

Применяется к