Bagikan melalui


OutputCacheServiceCollectionExtensions.AddOutputCache Metode

Definisi

Overload

AddOutputCache(IServiceCollection)

Tambahkan layanan penembolokan output.

AddOutputCache(IServiceCollection, Action<OutputCacheOptions>)

Tambahkan layanan penembolokan output dan konfigurasikan opsi terkait.

AddOutputCache(IServiceCollection)

Sumber:
OutputCacheServiceCollectionExtensions.cs

Tambahkan layanan penembolokan output.

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

Parameter

services
IServiceCollection

IServiceCollection untuk menambahkan layanan.

Mengembalikan

Berlaku untuk

AddOutputCache(IServiceCollection, Action<OutputCacheOptions>)

Sumber:
OutputCacheServiceCollectionExtensions.cs

Tambahkan layanan penembolokan output dan konfigurasikan opsi terkait.

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

Parameter

services
IServiceCollection

IServiceCollection untuk menambahkan layanan.

configureOptions
Action<OutputCacheOptions>

Delegasi untuk mengonfigurasi OutputCacheOptions.

Mengembalikan

Berlaku untuk