OutputCacheConventionBuilderExtensions.CacheOutput Metodo
Definizione
Importante
Alcune informazioni sono relative alla release non definitiva del prodotto, che potrebbe subire modifiche significative prima della release definitiva. Microsoft non riconosce alcuna garanzia, espressa o implicita, in merito alle informazioni qui fornite.
Overload
CacheOutput<TBuilder>(TBuilder) |
Contrassegna un endpoint da memorizzare nella cache con i criteri predefiniti. |
CacheOutput<TBuilder>(TBuilder, IOutputCachePolicy) |
Contrassegna un endpoint da memorizzare nella cache con i criteri specificati. |
CacheOutput<TBuilder>(TBuilder, Action<OutputCachePolicyBuilder>) |
Contrassegna un endpoint da memorizzare nella cache usando il generatore di criteri specificato. |
CacheOutput<TBuilder>(TBuilder, String) |
Contrassegna un endpoint da memorizzare nella cache usando un criterio denominato. |
CacheOutput<TBuilder>(TBuilder, Action<OutputCachePolicyBuilder>, Boolean) |
Contrassegna un endpoint da memorizzare nella cache usando il generatore di criteri specificato. |
CacheOutput<TBuilder>(TBuilder)
Contrassegna un endpoint da memorizzare nella cache con i criteri predefiniti.
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
Parametri di tipo
- TBuilder
Parametri
- builder
- TBuilder
Restituisce
Si applica a
CacheOutput<TBuilder>(TBuilder, IOutputCachePolicy)
Contrassegna un endpoint da memorizzare nella cache con i criteri specificati.
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
Parametri di tipo
- TBuilder
Parametri
- builder
- TBuilder
- policy
- IOutputCachePolicy
Restituisce
Si applica a
CacheOutput<TBuilder>(TBuilder, Action<OutputCachePolicyBuilder>)
Contrassegna un endpoint da memorizzare nella cache usando il generatore di criteri specificato.
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
Parametri di tipo
- TBuilder
Parametri
- builder
- TBuilder
Oggetto IEndpointConventionBuilder.
- policy
- Action<OutputCachePolicyBuilder>
Azione su OutputCachePolicyBuilder.
Restituisce
Si applica a
CacheOutput<TBuilder>(TBuilder, String)
Contrassegna un endpoint da memorizzare nella cache usando un criterio denominato.
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
Parametri di tipo
- TBuilder
Parametri
- builder
- TBuilder
- policyName
- String
Restituisce
Si applica a
CacheOutput<TBuilder>(TBuilder, Action<OutputCachePolicyBuilder>, Boolean)
Contrassegna un endpoint da memorizzare nella cache usando il generatore di criteri specificato.
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
Parametri di tipo
- TBuilder
Parametri
- builder
- TBuilder
Oggetto IEndpointConventionBuilder.
- policy
- Action<OutputCachePolicyBuilder>
Azione su OutputCachePolicyBuilder.
- excludeDefaultPolicy
- Boolean
Indica se escludere o meno i criteri predefiniti.