2 references to AddPolicy
Microsoft.AspNetCore.OutputCaching (1)
OutputCacheOptions.cs (1)
65
public void AddPolicy(string name, Action<OutputCachePolicyBuilder> build) =>
AddPolicy
(name, build, false);
Microsoft.AspNetCore.OutputCaching.Tests (1)
OutputCachePolicyBuilderTests.cs (1)
79
options.
AddPolicy
(name, b => b.Expire(TimeSpan.FromSeconds(duration)), true);