ResponseCachingServicesExtensions.AddResponseCaching Yöntem

Tanım

Aşırı Yüklemeler

AddResponseCaching(IServiceCollection)

Yanıt önbelleğe alma hizmetleri ekleyin.

AddResponseCaching(IServiceCollection, Action<ResponseCachingOptions>)

Yanıt önbelleğe alma hizmetleri ekleyin ve ilgili seçenekleri yapılandırın.

AddResponseCaching(IServiceCollection)

Kaynak:
ResponseCachingServicesExtensions.cs
Kaynak:
ResponseCachingServicesExtensions.cs
Kaynak:
ResponseCachingServicesExtensions.cs

Yanıt önbelleğe alma hizmetleri ekleyin.

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

Parametreler

services
IServiceCollection

IServiceCollection Hizmet ekleme için.

Döndürülenler

Şunlara uygulanır

AddResponseCaching(IServiceCollection, Action<ResponseCachingOptions>)

Kaynak:
ResponseCachingServicesExtensions.cs
Kaynak:
ResponseCachingServicesExtensions.cs
Kaynak:
ResponseCachingServicesExtensions.cs

Yanıt önbelleğe alma hizmetleri ekleyin ve ilgili seçenekleri yapılandırın.

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

Parametreler

services
IServiceCollection

IServiceCollection Hizmet ekleme için.

configureOptions
Action<ResponseCachingOptions>

öğesini yapılandırmak için bir ResponseCachingOptionstemsilci.

Döndürülenler

Şunlara uygulanır