2 writes to PolicyName
Microsoft.AspNetCore.OutputCaching.Tests (1)
OutputCacheAttributeTests.cs (1)
152
[OutputCache(
PolicyName
= "MyPolicy")]
OutputCachingSample (1)
Startup.cs (1)
30
app.MapGet("/attribute", [OutputCache(
PolicyName
= "NoCache")] (context) => Gravatar.WriteGravatar(context));
2 references to PolicyName
Microsoft.AspNetCore.OutputCaching (2)
OutputCacheAttribute.cs (2)
76
if (
PolicyName
!= null)
80
builder.AddPolicy(new NamedPolicy(
PolicyName
));