77 references to MapGet
Aspire.Dashboard (1)
CookieSample (2)
HeaderPropagationSample (2)
HttpStress (5)
JwtSample (1)
Microsoft.AspNetCore.Diagnostics.Middleware.Tests (3)
Microsoft.AspNetCore.Diagnostics.Tests (4)
Microsoft.AspNetCore.Http.Abstractions.Tests (2)
Microsoft.AspNetCore.Http.Connections.Tests (3)
Microsoft.AspNetCore.Rewrite.Tests (14)
MiddlewareTests.cs (14)
659endpoints.MapGet("/foos", context => context.Response.WriteAsync("bad"));
660endpoints.MapGet("/foo", context => context.Response.WriteAsync($"{context.GetEndpoint()?.DisplayName} from {context.Request.Path}"));
857endpoints.MapGet("/foo", context => context.Response.WriteAsync(
860endpoints.MapGet("/g", context => context.Response.WriteAsync(
895endpoints.MapGet("/foo", context => context.Response.WriteAsync(
898endpoints.MapGet("/g", context => context.Response.WriteAsync(
931endpoints.MapGet("/foo", context => context.Response.WriteAsync(
934endpoints.MapGet("/g", context => context.Response.WriteAsync(
968endpoints.MapGet("/foo", context => context.Response.WriteAsync(
971endpoints.MapGet("/g/h", context => context.Response.WriteAsync(
1005endpoints.MapGet("/foo", context => context.Response.WriteAsync(
1008endpoints.MapGet("/g", context => context.Response.WriteAsync(
1038app.MapGet("/foo", context => context.Response.WriteAsync(
1041app.MapGet("/g", context => context.Response.WriteAsync(
Microsoft.AspNetCore.Routing.Tests (2)
Microsoft.AspNetCore.SignalR.Tests (1)
Microsoft.AspNetCore.StaticAssets.Tests (2)
Microsoft.AspNetCore.Tests (7)
OutputCachingSample (12)
Startup.cs (12)
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))));
51app.MapGet("/lock", async (context) =>
58app.MapGet("/etag", async (context) =>
73app.MapGet("/ims", Gravatar.WriteGravatar).CacheOutput();
RoutingSandbox (4)
RoutingWebSite (9)
SignalR.Client.FunctionalTestApp (2)
SignalRSamples (1)