9 references to SetVaryByQuery
Microsoft.AspNetCore.OutputCaching.Tests (8)
OutputCachePolicyBuilderTests.cs (1)
127
var policy = builder.
SetVaryByQuery
("QueryA", "QueryC").Build();
OutputCacheTests.cs (7)
354
options.AddBasePolicy(b => b.
SetVaryByQuery
("query"));
377
options.AddBasePolicy(b => b.
SetVaryByQuery
("QueryA", "queryb"));
400
options.AddBasePolicy(b => b.
SetVaryByQuery
("*"));
423
options.AddBasePolicy(b => b.
SetVaryByQuery
("QueryB", "QueryA"));
446
options.AddBasePolicy(b => b.
SetVaryByQuery
("*"));
469
options.AddBasePolicy(b => b.
SetVaryByQuery
("query").Build());
491
options.AddBasePolicy(b => b.
SetVaryByQuery
("query").Build());
OutputCachingSample (1)
Startup.cs (1)
44
app.MapGet("/query", Gravatar.WriteGravatar).CacheOutput(p => p.
SetVaryByQuery
("culture"));