11 references to WriteGravatar
OutputCachingSample (11)
Startup.cs (11)
22app.MapGet("/", Gravatar.WriteGravatar);
24app.MapGet("/cached", Gravatar.WriteGravatar).CacheOutput();
26app.MapGet("/nocache", Gravatar.WriteGravatar).CacheOutput(x => x.NoCache());
28app.MapGet("/profile", Gravatar.WriteGravatar).CacheOutput("NoCache");
30app.MapGet("/attribute", [OutputCache(PolicyName = "NoCache")] (context) => Gravatar.WriteGravatar(context));
33blog.MapGet("/", Gravatar.WriteGravatar);
34blog.MapGet("/post/{id}", Gravatar.WriteGravatar).CacheOutput(x => x.Tag("blog", "byid")); // Calling CacheOutput() here overwrites the group's policy
44app.MapGet("/query", Gravatar.WriteGravatar).CacheOutput(p => p.SetVaryByQuery("culture"));
46app.MapGet("/vary", Gravatar.WriteGravatar).CacheOutput(c => c.VaryByValue((context) => new KeyValuePair<string, string>("time", (DateTime.Now.Second % 2).ToString(CultureInfo.InvariantCulture))));
66await Gravatar.WriteGravatar(context);
73app.MapGet("/ims", Gravatar.WriteGravatar).CacheOutput();