OutputCachePolicyBuilder.With 方法

定义

重载

With(Func<OutputCacheContext,Boolean>)

向当前策略添加要求。

With(Func<OutputCacheContext,CancellationToken,ValueTask<Boolean>>)

向当前策略添加要求。

With(Func<OutputCacheContext,Boolean>)

Source:
OutputCachePolicyBuilder.cs

向当前策略添加要求。

public Microsoft.AspNetCore.OutputCaching.OutputCachePolicyBuilder With (Func<Microsoft.AspNetCore.OutputCaching.OutputCacheContext,bool> predicate);
member this.With : Func<Microsoft.AspNetCore.OutputCaching.OutputCacheContext, bool> -> Microsoft.AspNetCore.OutputCaching.OutputCachePolicyBuilder
Public Function With (predicate As Func(Of OutputCacheContext, Boolean)) As OutputCachePolicyBuilder

参数

predicate
Func<OutputCacheContext,Boolean>

应用于策略的谓词。

返回

适用于

With(Func<OutputCacheContext,CancellationToken,ValueTask<Boolean>>)

Source:
OutputCachePolicyBuilder.cs

向当前策略添加要求。

public Microsoft.AspNetCore.OutputCaching.OutputCachePolicyBuilder With (Func<Microsoft.AspNetCore.OutputCaching.OutputCacheContext,System.Threading.CancellationToken,System.Threading.Tasks.ValueTask<bool>> predicate);
member this.With : Func<Microsoft.AspNetCore.OutputCaching.OutputCacheContext, System.Threading.CancellationToken, System.Threading.Tasks.ValueTask<bool>> -> Microsoft.AspNetCore.OutputCaching.OutputCachePolicyBuilder
Public Function With (predicate As Func(Of OutputCacheContext, CancellationToken, ValueTask(Of Boolean))) As OutputCachePolicyBuilder

参数

predicate
Func<OutputCacheContext,CancellationToken,ValueTask<Boolean>>

应用于策略的谓词。

返回

适用于