OutputCachePolicyBuilder.SetLocking(Boolean) Method

Definition

Adds a policy to change the request locking strategy.

C#
public Microsoft.AspNetCore.OutputCaching.OutputCachePolicyBuilder SetLocking (bool enabled);

Parameters

enabled
Boolean

Whether the request should be locked.

Returns

Remarks

When the default policy is used, locking is enabled by default.

Applies to

Product Versions
ASP.NET Core 7.0, 8.0, 9.0