77 references to MapGet
Aspire.Dashboard (1)
DashboardEndpointsBuilder.cs (1)
28endpoints.MapGet("/api/signout", async (HttpContext httpContext) =>
CookieSample (2)
Program.cs (2)
39app.MapGet("/", async context => 55app.MapGet("/ticket", async context =>
HeaderPropagationSample (2)
Startup.cs (2)
63endpoints.MapGet("/", async context => 89endpoints.MapGet("/forwarded", async context =>
HttpStress (5)
Program.cs (5)
422endpoints.MapGet("/", async context => 427endpoints.MapGet("/slow", async context => 436endpoints.MapGet("/headers", async context => 456endpoints.MapGet("/abort", async context => 462endpoints.MapGet("/parallel-abort", async context =>
JwtSample (1)
Startup.cs (1)
70endpoints.MapGet("/generatetoken", context =>
Microsoft.AspNetCore.Diagnostics.Middleware.Tests (3)
Latency\AcceptanceTests.cs (1)
70endpoints.MapGet("/", async context =>
Latency\ChecpointAcceptanceTests.cs (2)
58app.UseEndpoints(endpoints => endpoints.MapGet("/", async context => await context.Response.WriteAsync("Hello World!"))); 99app.UseEndpoints(endpoints => endpoints.MapGet("/", async context => await context.Response.WriteAsync("Hello World!")));
Microsoft.AspNetCore.Diagnostics.Tests (4)
StatusCodeMiddlewareTest.cs (4)
260endpoints.MapGet("/", c => 296endpoints.MapGet("/", [SkipStatusCodePages] (c) => 332endpoints.MapGet("/skip", [SkipStatusCodePages](c) => 370endpoints.MapGet("/", (c) =>
Microsoft.AspNetCore.Http.Abstractions.Tests (2)
UsePathBaseExtensionsTests.cs (2)
177app.MapGet("/path", context => context.Response.WriteAsync("Response")); 197app.MapGet("/path", context => context.Response.WriteAsync("Response"));
Microsoft.AspNetCore.Http.Connections.Tests (3)
HttpConnectionDispatcherTests.cs (3)
3235endpoints.MapGet("/generatetoken", context => 3302endpoints.MapGet("/signin", async context => 3397endpoints.MapGet("/generatetoken", context =>
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)
Builder\RequestDelegateEndpointRouteBuilderExtensionsTest.cs (1)
35routes.MapGet(template, action);
EndpointRoutingMiddlewareTest.cs (1)
414endpoints.MapGet("/", (HttpContext c) => Task.CompletedTask);
Microsoft.AspNetCore.SignalR.Tests (1)
Startup.cs (1)
98endpoints.MapGet("/generatetoken", context =>
Microsoft.AspNetCore.StaticAssets.Tests (2)
StaticAssetsIntegrationTests.cs (2)
209endpoints.MapGet("/has-integrity", context => 266endpoints.MapGet("/has-integrity", context =>
Microsoft.AspNetCore.Tests (7)
WebApplicationTests.cs (7)
1692app.MapGet("/", async c => 1728app.MapGet("/1", async c => 1926app.MapGet("/", async c => 1959routes.MapGet("/hi", async c => 1973endpoints.MapGet("/h3", async c => 1978endpoints.MapGet("hi", async c => 3166endpoints.MapGet("/1", async c =>
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)
UseEndpointRoutingStartup.cs (4)
31endpoints.MapGet( 53endpoints.MapGet( 64endpoints.MapGet( 78endpoints.MapGet("/attributes", HandlerWithAttributes);
RoutingWebSite (9)
UseEndpointRoutingStartup.cs (9)
37endpoints.MapGet( 55endpoints.MapGet( 66endpoints.MapGet( 76endpoints.MapGet( 85endpoints.MapGet( 94endpoints.MapGet( 106endpoints.MapGet( 137var conventionBuilder = endpoints.MapGet( 161endpoints.MapGet("api/get/{id}", (context) => context.Response.WriteAsync($"{name} - API Get {context.Request.RouteValues["id"]}"));
SignalR.Client.FunctionalTestApp (2)
Startup.cs (2)
241endpoints.MapGet("/generateJwtToken", context => 259endpoints.MapGet("/deployment", context =>
SignalRSamples (1)
Startup.cs (1)
50endpoints.MapGet("/deployment", async context =>