4 references to AddPolicy
Microsoft.AspNetCore.OutputCaching.Tests (3)
OutputCacheAttributeTests.cs (2)
49
options.
AddPolicy
("MyPolicy", b => b.Expire(TimeSpan.FromSeconds(42)));
64
options.
AddPolicy
("MyPolicy", b => b.With(x => false).Cache());
OutputCachePolicyBuilderTests.cs (1)
61
options.
AddPolicy
(name, b => b.Expire(TimeSpan.FromSeconds(duration)));
OutputCachingSample (1)
Startup.cs (1)
15
options.
AddPolicy
("NoCache", b => b.NoCache());