OutputCacheConventionBuilderExtensions.CacheOutput 方法

定义

重载

CacheOutput<TBuilder>(TBuilder)

使用默认策略标记要缓存的终结点。

CacheOutput<TBuilder>(TBuilder, IOutputCachePolicy)

标记使用指定策略缓存的终结点。

CacheOutput<TBuilder>(TBuilder, Action<OutputCachePolicyBuilder>)

使用指定的策略生成器标记要缓存的终结点。

CacheOutput<TBuilder>(TBuilder, String)

使用命名策略标记要缓存的终结点。

CacheOutput<TBuilder>(TBuilder, Action<OutputCachePolicyBuilder>, Boolean)

使用指定的策略生成器标记要缓存的终结点。

CacheOutput<TBuilder>(TBuilder)

Source:
OutputCacheConventionBuilderExtensions.cs

使用默认策略标记要缓存的终结点。

public static TBuilder CacheOutput<TBuilder> (this TBuilder builder) where TBuilder : Microsoft.AspNetCore.Builder.IEndpointConventionBuilder;
static member CacheOutput : 'Builder -> 'Builder (requires 'Builder :> Microsoft.AspNetCore.Builder.IEndpointConventionBuilder)
<Extension()>
Public Function CacheOutput(Of TBuilder As IEndpointConventionBuilder) (builder As TBuilder) As TBuilder

类型参数

TBuilder

参数

builder
TBuilder

返回

TBuilder

适用于

CacheOutput<TBuilder>(TBuilder, IOutputCachePolicy)

Source:
OutputCacheConventionBuilderExtensions.cs

标记使用指定策略缓存的终结点。

public static TBuilder CacheOutput<TBuilder> (this TBuilder builder, Microsoft.AspNetCore.OutputCaching.IOutputCachePolicy policy) where TBuilder : Microsoft.AspNetCore.Builder.IEndpointConventionBuilder;
static member CacheOutput : 'Builder * Microsoft.AspNetCore.OutputCaching.IOutputCachePolicy -> 'Builder (requires 'Builder :> Microsoft.AspNetCore.Builder.IEndpointConventionBuilder)
<Extension()>
Public Function CacheOutput(Of TBuilder As IEndpointConventionBuilder) (builder As TBuilder, policy As IOutputCachePolicy) As TBuilder

类型参数

TBuilder

参数

builder
TBuilder

返回

TBuilder

适用于

CacheOutput<TBuilder>(TBuilder, Action<OutputCachePolicyBuilder>)

Source:
OutputCacheConventionBuilderExtensions.cs

使用指定的策略生成器标记要缓存的终结点。

public static TBuilder CacheOutput<TBuilder> (this TBuilder builder, Action<Microsoft.AspNetCore.OutputCaching.OutputCachePolicyBuilder> policy) where TBuilder : Microsoft.AspNetCore.Builder.IEndpointConventionBuilder;
static member CacheOutput : 'Builder * Action<Microsoft.AspNetCore.OutputCaching.OutputCachePolicyBuilder> -> 'Builder (requires 'Builder :> Microsoft.AspNetCore.Builder.IEndpointConventionBuilder)
<Extension()>
Public Function CacheOutput(Of TBuilder As IEndpointConventionBuilder) (builder As TBuilder, policy As Action(Of OutputCachePolicyBuilder)) As TBuilder

类型参数

TBuilder

参数

builder
TBuilder

IEndpointConventionBuilder

返回

TBuilder

适用于

CacheOutput<TBuilder>(TBuilder, String)

Source:
OutputCacheConventionBuilderExtensions.cs

使用命名策略标记要缓存的终结点。

public static TBuilder CacheOutput<TBuilder> (this TBuilder builder, string policyName) where TBuilder : Microsoft.AspNetCore.Builder.IEndpointConventionBuilder;
static member CacheOutput : 'Builder * string -> 'Builder (requires 'Builder :> Microsoft.AspNetCore.Builder.IEndpointConventionBuilder)
<Extension()>
Public Function CacheOutput(Of TBuilder As IEndpointConventionBuilder) (builder As TBuilder, policyName As String) As TBuilder

类型参数

TBuilder

参数

builder
TBuilder
policyName
String

返回

TBuilder

适用于

CacheOutput<TBuilder>(TBuilder, Action<OutputCachePolicyBuilder>, Boolean)

Source:
OutputCacheConventionBuilderExtensions.cs

使用指定的策略生成器标记要缓存的终结点。

public static TBuilder CacheOutput<TBuilder> (this TBuilder builder, Action<Microsoft.AspNetCore.OutputCaching.OutputCachePolicyBuilder> policy, bool excludeDefaultPolicy) where TBuilder : Microsoft.AspNetCore.Builder.IEndpointConventionBuilder;
static member CacheOutput : 'Builder * Action<Microsoft.AspNetCore.OutputCaching.OutputCachePolicyBuilder> * bool -> 'Builder (requires 'Builder :> Microsoft.AspNetCore.Builder.IEndpointConventionBuilder)
<Extension()>
Public Function CacheOutput(Of TBuilder As IEndpointConventionBuilder) (builder As TBuilder, policy As Action(Of OutputCachePolicyBuilder), excludeDefaultPolicy As Boolean) As TBuilder

类型参数

TBuilder

参数

builder
TBuilder

IEndpointConventionBuilder

excludeDefaultPolicy
Boolean

是否排除默认策略。

返回

TBuilder

适用于