OutputCacheConventionBuilderExtensions.CacheOutput Method

Definition

Overloads

CacheOutput<TBuilder>(TBuilder)

Marks an endpoint to be cached with the default policy.

CacheOutput<TBuilder>(TBuilder, IOutputCachePolicy)

Marks an endpoint to be cached with the specified policy.

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

Marks an endpoint to be cached using the specified policy builder.

CacheOutput<TBuilder>(TBuilder, String)

Marks an endpoint to be cached using a named policy.

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

Marks an endpoint to be cached using the specified policy builder.

CacheOutput<TBuilder>(TBuilder)

Source:
OutputCacheConventionBuilderExtensions.cs

Marks an endpoint to be cached with the default policy.

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

Type Parameters

TBuilder

Parameters

builder
TBuilder

Returns

TBuilder

Applies to

CacheOutput<TBuilder>(TBuilder, IOutputCachePolicy)

Source:
OutputCacheConventionBuilderExtensions.cs

Marks an endpoint to be cached with the specified policy.

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

Type Parameters

TBuilder

Parameters

builder
TBuilder

Returns

TBuilder

Applies to

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

Source:
OutputCacheConventionBuilderExtensions.cs

Marks an endpoint to be cached using the specified policy builder.

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

Type Parameters

TBuilder

Parameters

builder
TBuilder

The IEndpointConventionBuilder.

Returns

TBuilder

Applies to

CacheOutput<TBuilder>(TBuilder, String)

Source:
OutputCacheConventionBuilderExtensions.cs

Marks an endpoint to be cached using a named policy.

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

Type Parameters

TBuilder

Parameters

builder
TBuilder
policyName
String

Returns

TBuilder

Applies to

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

Source:
OutputCacheConventionBuilderExtensions.cs

Marks an endpoint to be cached using the specified policy builder.

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

Type Parameters

TBuilder

Parameters

builder
TBuilder

The IEndpointConventionBuilder.

excludeDefaultPolicy
Boolean

Whether to exclude the default policy or not.

Returns

TBuilder

Applies to