OutputCacheConventionBuilderExtensions.CacheOutput Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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)
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
Applies to
CacheOutput<TBuilder>(TBuilder, IOutputCachePolicy)
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
- policy
- IOutputCachePolicy
Returns
Applies to
CacheOutput<TBuilder>(TBuilder, Action<OutputCachePolicyBuilder>)
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
- policy
- Action<OutputCachePolicyBuilder>
An action on OutputCachePolicyBuilder.
Returns
Applies to
CacheOutput<TBuilder>(TBuilder, String)
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
Applies to
CacheOutput<TBuilder>(TBuilder, Action<OutputCachePolicyBuilder>, Boolean)
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
- policy
- Action<OutputCachePolicyBuilder>
An action on OutputCachePolicyBuilder.
- excludeDefaultPolicy
- Boolean
Whether to exclude the default policy or not.