134 references to MapGet
Aspire.Dashboard (6)
DashboardEndpointsBuilder.cs (6)
57endpoints.MapGet("/api/set-language", async (string? language, string? redirectUrl, [FromHeader(Name = "Accept-Language")] string? acceptLanguage, HttpContext httpContext) => 122group.MapGet("/resources", (TelemetryApiService service) => 130group.MapGet("/spans", async ( 161group.MapGet("/logs", async ( 192group.MapGet("/traces", ( 212group.MapGet("/traces/{traceId}", (
Aspire.Dashboard.Tests (3)
Integration\DashboardClientAuthTests.cs (1)
83serverApp.MapGet("/", () => "Communication with gRPC endpoints must be made through a gRPC client.");
Integration\MockOpenIdAuthority.cs (2)
44endpoints.MapGet( 57endpoints.MapGet(
AspireJavaScript.MinimalApi (1)
AppHost.cs (1)
25app.MapGet("/api/weatherforecast", () =>
AspireWithNode.AspNetCoreApi (1)
Program.cs (1)
20app.MapGet("/weatherforecast", () =>
AzureAppConfiguration.Web (1)
Program.cs (1)
17app.MapGet("/message", (IConfiguration config) =>
AzureAppService.ApiService (3)
Program.cs (3)
19app.MapGet("/", () => 34app.MapGet("/blobs", async (BlobServiceClient bsc) => 54app.MapGet("/cosmos", async (TestCosmosContext context) =>
AzureContainerApps.ApiService (6)
Program.cs (6)
21app.MapGet("/", () => 39app.MapGet("/blobs", async (BlobServiceClient bsc) => 59app.MapGet("/cosmos", async (TestCosmosContext context) => 69app.MapGet("/redis/ping", async (IConnectionMultiplexer connection) => 74app.MapGet("/redis/set", async (IConnectionMultiplexer connection) => 79app.MapGet("/redis/get", async (IConnectionMultiplexer connection) =>
AzureDataLakeEndToEnd.WebApi (2)
Program.cs (2)
13app.MapGet("/creat-file-system", async ([FromQuery] string fileSystemName, [FromServices] DataLakeServiceClient dataLakeServiceClient) => 19app.MapGet("/creat-directory", async ([FromQuery] string directory, [FromServices] DataLakeFileSystemClient dataLakeFileSystemClient) =>
AzureFunctionsEndToEnd.ApiService (4)
Program.cs (4)
27app.MapGet("/publish/asq", async (QueueServiceClient client, CancellationToken cancellationToken) => 42app.MapGet("/publish/blob", async (BlobServiceClient client, CancellationToken cancellationToken, int length = 20) => 55app.MapGet("/publish/eventhubs", async (EventHubProducerClient client, CancellationToken cancellationToken, int length = 20) => 83app.MapGet("/", async (HttpClient client) =>
AzureSearch.ApiService (1)
Program.cs (1)
23app.MapGet("/", async (SearchIndexClient searchIndexClient, CancellationToken cancellationToken) =>
AzureStorageEndToEnd.ApiService (1)
Program.cs (1)
21app.MapGet("/", async (BlobServiceClient bsc, [FromKeyedServices("myqueue")] QueueClient queue, [FromKeyedServices("foocontainer")] BlobContainerClient keyedContainerClient1) =>
AzureVirtualNetworkEndToEnd.ApiService (2)
Program.cs (2)
22app.MapGet("/", async (BlobContainerClient containerClient, [FromKeyedServices("myqueue")] QueueClient queue) => 36app.MapGet("/sql", async (SqlConnection connection) =>
BicepSample.ApiService (8)
Program.cs (8)
28app.MapGet("/", async (MyDbContext context) => 47app.MapGet("/pg", async (MyPgDbContext context) => 66app.MapGet("/cosmos", async (CosmosClient cosmosClient) => 97app.MapGet("/redis", async (IConnectionMultiplexer connection) => 117app.MapGet("/blobs", async (BlobServiceClient blobServiceClient) => 141app.MapGet("/tables", async (TableServiceClient tableServiceClient) => 166app.MapGet("/queues", async (QueueServiceClient queueServiceClient, CancellationToken cancellationToken) => 188app.MapGet("/servicebus", async (ServiceBusClient serviceBusClient, CancellationToken cancellationToken) =>
CatalogService (2)
CatalogApi.cs (2)
13group.MapGet("items/type/all/brand/{catalogBrandId?}", async (int? catalogBrandId, CatalogDbContext catalogContext, int? before, int? after, int pageSize = 8) => 31group.MapGet("items/{catalogItemId:int}/image", async (int catalogItemId, CatalogDbContext catalogDbContext, IHostEnvironment environment) =>
CdkSample.ApiService (1)
Program.cs (1)
36app.MapGet("/", async (BlobServiceClient bsc, SqlContext sqlContext, SecretClient sc, IConnectionMultiplexer connection, CosmosContext cosmosContext, NpgsqlContext npgsqlContext, ServiceBusClient sbc, ConfigurationClient cc, SearchIndexClient search) =>
CosmosEndToEnd.ApiService (4)
Program.cs (4)
50app.MapGet("/", async ([FromKeyedServices("entries")] Container container) => 56app.MapGet("/users", async ([FromKeyedServices("users")] Container container) => 62app.MapGet("/user-todo", async ([FromKeyedServices("user-todo")] Container container) => 73app.MapGet("/ef", async (TestCosmosContext context) =>
DatabaseMigration.ApiService (1)
Program.cs (1)
34app.MapGet("/", async (MyDb1Context context) =>
Deployers.ApiService (1)
Program.cs (1)
12app.MapGet("/", () =>
DevTunnels.ApiService (1)
Program.cs (1)
12app.MapGet("/", async (IHttpClientFactory httpClientFactory) =>
EventHubsApi (1)
Program.cs (1)
12app.MapGet("/test", async (EventHubProducerClient producerClient) =>
Keycloak.ApiService (1)
Program.cs (1)
28app.MapGet("/weatherforecast", () =>
Keycloak.Web (1)
LoginLogoutEndpointRouteBuilderExtensions.cs (1)
13group.MapGet("/login", () => TypedResults.Challenge(new AuthenticationProperties { RedirectUri = "/" }))
Microsoft.AspNetCore.Identity (2)
IdentityApiEndpointRouteBuilderExtensions.cs (2)
142routeGroup.MapGet("/confirmEmail", async Task<Results<ContentHttpResult, UnauthorizedHttpResult>> 336accountGroup.MapGet("/info", async Task<Results<Ok<InfoResponse>, ValidationProblem, NotFound>>
Microsoft.AspNetCore.Routing (1)
RouteHandlerOptions.cs (1)
12/// Options for controlling the behavior of <see cref="EndpointRouteBuilderExtensions.MapGet(IEndpointRouteBuilder, string, Delegate)"/>
Microsoft.DotNet.HotReload.Watch (1)
src\sdk\src\Dotnet.Watch\AspireService\AspireServerService.cs (1)
229app.MapGet("/", () => _displayName);
MilvusPlayground.ApiService (2)
Program.cs (2)
20app.MapGet("/create", async (MilvusClient milvusClient, ILogger<Program> logger) => 103app.MapGet("/search", async (MilvusClient milvusClient, ILogger<Program> logger) =>
Mongo.ApiService (1)
Program.cs (1)
16app.MapGet("/", async (IMongoClient mongoClient) =>
MySql.ApiService (3)
Program.cs (3)
21app.MapGet("/catalog", async (MySqlConnection db) => 31app.MapGet("/catalog/{id}", async (int id, MySqlConnection db) => 67app.MapGet("/myTestDb2", async ([FromKeyedServices("myTestDb2")] MySqlConnection db) =>
Nats.ApiService (3)
Program.cs (3)
23app.MapGet("/ping", async (INatsConnection nats) => 36app.MapGet("/stream/{name}", async (string name, INatsJSContext jetStream) => 57app.MapGet("/consume/{name}", async (string name, INatsJSContext jetStream) =>
OracleEndToEnd.ApiService (1)
Program.cs (1)
15app.MapGet("/", async (MyDbContext dbContext) =>
OrleansClient (1)
Program.cs (1)
11app.MapGet("/counter/{grainId}", async (IClusterClient client, string grainId) =>
OrleansServer (1)
Program.cs (1)
12app.MapGet("/", () => "OK");
ParameterEndToEnd.ApiService (1)
Program.cs (1)
17app.MapGet("/", async (MyDbContext context) =>
PostgresEndToEnd.ApiService (1)
Program.cs (1)
16app.MapGet("/", async (MyDb1Context db1Context) =>
ProxylessEndToEnd.ApiService (2)
Program.cs (2)
15app.MapGet("/", () => 20app.MapGet("/redis", ([FromKeyedServices("redis")] IConnectionMultiplexer redis) =>
Publishers.ApiService (1)
Program.cs (1)
16app.MapGet("/", async (MyDbContext dbContext) =>
Qdrant.ApiService (2)
Program.cs (2)
19app.MapGet("/create", async (QdrantClient client, ILogger<Program> logger) => 85app.MapGet("/search", async (QdrantClient client) =>
Redis.ApiService (9)
Program.cs (9)
15app.MapGet("/redis/ping", async (IConnectionMultiplexer connection) => 20app.MapGet("/redis/set", async (IConnectionMultiplexer connection) => 25app.MapGet("/redis/get", async (IConnectionMultiplexer connection) => 31app.MapGet("/garnet/ping", async ([FromKeyedServices("garnet")] IConnectionMultiplexer connection) => 36app.MapGet("/garnet/set", async ([FromKeyedServices("garnet")] IConnectionMultiplexer connection) => 41app.MapGet("/garnet/get", async ([FromKeyedServices("garnet")] IConnectionMultiplexer connection) => 47app.MapGet("/valkey/ping", async ([FromKeyedServices("valkey")] IConnectionMultiplexer connection) => 52app.MapGet("/valkey/set", async ([FromKeyedServices("valkey")] IConnectionMultiplexer connection) => 57app.MapGet("/valkey/get", async ([FromKeyedServices("valkey")] IConnectionMultiplexer connection) =>
Seq.ApiService (1)
Program.cs (1)
17app.MapGet("/", () =>
SqlServerEndToEnd.ApiService (1)
Program.cs (1)
17app.MapGet("/", async (MyDb1Context db1Context, MyDb2Context db2Context) =>
Stress.ApiService (22)
Program.cs (22)
44app.MapGet("/", () => "Hello world"); 46app.MapGet("/write-console", () => 63app.MapGet("/write-console-large", () => 79app.MapGet("/increment-counter", (TestMetrics metrics) => 88app.MapGet("/exemplars-no-span", (TestMetrics metrics) => 100app.MapGet("/overflow-counter", (TestMetrics metrics) => 115app.MapGet("/big-trace", async () => 127app.MapGet("/trace-limit", async () => 151app.MapGet("/http-client-requests", async (HttpClient client) => 164app.MapGet("/log-message-limit", async ([FromServices] ILogger<Program> logger) => 182app.MapGet("/log-message-limit-large", async ([FromServices] ILogger<Program> logger) => 219app.MapGet("/log-message", ([FromServices] ILogger<Program> logger) => 236app.MapGet("/many-logs", (ILoggerFactory loggerFactory, CancellationToken cancellationToken) => 280app.MapGet("/producer-consumer", async () => 289app.MapGet("/log-formatting", (ILoggerFactory loggerFactory) => 337app.MapGet("/duplicate-spanid", async () => 349app.MapGet("/multiple-traces-linked", async () => 366app.MapGet("/nested-trace-spans", async () => 428app.MapGet("/genai-trace", async () => 724app.MapGet("/genai-trace-display-error", async () => 743app.MapGet("/genai-langchain-trace", async () => 782app.MapGet("/genai-evaluations", async () =>
TestingAppHost1.MyWebApp (4)
Program.cs (4)
23app.MapGet("/weatherforecast", () => 37app.MapGet("/get-launch-profile-var", () => 42app.MapGet("/get-app-host-arg", () => 47app.MapGet("/get-launch-profile-var-from-app-host", () =>
TestProject.IntegrationServiceA (5)
Postgres\NpgsqlEFCoreExtensions.cs (1)
10app.MapGet("/efnpgsql/verify", VerifyNpgsqlEFCoreAsync);
Postgres\PostgresExtensions.cs (1)
10app.MapGet("/postgres/verify", VerifyPostgresAsync);
Program.cs (2)
33app.MapGet("/", () => "Hello World!"); 35app.MapGet("/pid", () => Environment.ProcessId);
Redis\RedisExtensions.cs (1)
10app.MapGet("/redis/verify", VerifyRedisAsync);
TestProject.ServiceA (4)
Program.cs (4)
10app.MapGet("/", () => "Hello World!"); 11app.MapGet("/get-only", () => Results.Ok()); 13app.MapGet("/pid", () => Environment.ProcessId); 15app.MapGet("/urls", (IServiceProvider sp) => sp.GetService<IServer>()?.Features?.Get<IServerAddressesFeature>()?.Addresses);
TestProject.ServiceB (2)
Program.cs (2)
7app.MapGet("/", () => "Hello World!"); 8app.MapGet("/pid", () => Environment.ProcessId);
TestProject.ServiceC (2)
Program.cs (2)
7app.MapGet("/", () => "Hello World!"); 8app.MapGet("/pid", () => Environment.ProcessId);
WaitForSandbox.ApiService (1)
Program.cs (1)
16app.MapGet("/", async (MyDbContext dbContext) =>
WebApplication1 (2)
Program.cs (2)
9app.MapGet("/", async (SqlConnection connection) => 28app.MapGet("/new", async (SqlConnection connection) =>
WebApplication2 (2)
Program.cs (2)
9app.MapGet("/", async (SqlConnection connection) => 28app.MapGet("/new", async (SqlConnection connection) =>
WebPubSubWeb (2)
Program.cs (2)
34app.MapGet("/negotiate/chat", ([FromKeyedServices(Constants.ChatHubName)] WebPubSubServiceClient service) => 43app.MapGet("/negotiate/notification", ([FromKeyedServices(Constants.NotificationHubName)] WebPubSubServiceClient service) =>
Yarp.Backend (1)
Program.cs (1)
19app.MapGet("/weatherforecast", () =>
Yarp.Frontend (1)
Program.cs (1)
18app.MapGet("/api/weatherforecast", async (IHttpClientFactory httpClientFactory) =>