2 references to VaryByValue
Microsoft.AspNetCore.OutputCaching.Tests (1)
OutputCachePolicyBuilderTests.cs (1)
224
.
VaryByValue
(context => new KeyValuePair<string, string>("color", "blue"))
OutputCachingSample (1)
Startup.cs (1)
46
app.MapGet("/vary", Gravatar.WriteGravatar).CacheOutput(c => c.
VaryByValue
((context) => new KeyValuePair<string, string>("time", (DateTime.Now.Second % 2).ToString(CultureInfo.InvariantCulture))));