79 references to Results
Aspire.Dashboard (18)
DashboardEndpointsBuilder.cs (15)
61return Results.BadRequest(); 68return Results.BadRequest(); 73return Results.BadRequest(); 91return Results.LocalRedirect(redirectUrl); 125return Results.Json(resources, OtlpJsonSerializerContext.Default.ResourceInfoJsonArray); 143return Results.Empty; 149return Results.NotFound(new ProblemDetails 156return Results.Json(response, OtlpJsonSerializerContext.Default.TelemetryApiResponse); 174return Results.Empty; 180return Results.NotFound(new ProblemDetails 187return Results.Json(response, OtlpJsonSerializerContext.Default.TelemetryApiResponse); 201return Results.NotFound(new ProblemDetails 208return Results.Json(response, OtlpJsonSerializerContext.Default.TelemetryApiResponse); 219return Results.NotFound(new ProblemDetails 226return Results.Json(response, OtlpJsonSerializerContext.Default.TelemetryApiResponse);
Otlp\Http\OtlpHttpEndpointsBuilder.cs (3)
55return Results.Empty; 63return Results.Empty; 71return Results.Empty;
Aspire.Dashboard.Tests (6)
Integration\MockOpenIdAuthority.cs (6)
49return Results.Json(new 64return Results.Redirect($"{redirect_uri}?error=interaction_required&state={state}"); 70return Results.Redirect($"{redirect_uri}?error=invalid_request&error_description=extraQueryParams%20not%20preserved&state={state}"); 74return Results.Redirect($"{redirect_uri}?code={lastCode}&state={state}"); 83return Results.BadRequest("Bad code"); 86return Results.Json(new
AzureAppService.ApiService (1)
Program.cs (1)
21return Results.Content("""
AzureContainerApps.ApiService (1)
Program.cs (1)
23return Results.Content("""
AzureFunctionsEndToEnd.ApiService (4)
Program.cs (4)
33return Results.Ok("Message sent to Azure Storage Queue."); 52return Results.Ok("String uploaded to Azure Storage Blobs."); 59return Results.Ok("Message sent to Azure EventHubs."); 86return Results.Stream(stream, "application/json");
AzureFunctionsEndToEnd.Functions (1)
MyHttpTrigger.cs (1)
40return Results.Text(stringBuilder.ToString());
AzureVirtualNetworkEndToEnd.ApiService (2)
Program.cs (2)
57return Results.Ok(new 65return Results.StatusCode(500);
CatalogDb (2)
ResetDbExtensions.cs (2)
20return Results.Unauthorized(); 27return Results.Ok();
CatalogService (3)
CatalogApi.cs (3)
37return Results.NotFound(); 44return Results.NotFound(); 47return Results.File(path, "image/jpeg");
EventHubsApi (2)
Program.cs (2)
17return Results.Ok(); 25return Results.Accepted();
Microsoft.AspNetCore.Identity (10)
_generated\0\GeneratedRouteBuilderExtensions.g.cs (10)
103return (object?)Results.Empty; 223return (object?)Results.Empty; 407return (object?)Results.Empty; 523return (object?)Results.Empty; 670return (object?)Results.Empty; 788return (object?)Results.Empty; 904return (object?)Results.Empty; 1021return (object?)Results.Empty; 1137return (object?)Results.Empty; 1243return (object?)Results.Empty;
MilvusPlayground.ApiService (1)
Program.cs (1)
100return Results.Ok("Collection created");
MySql.ApiService (5)
Program.cs (5)
40? Results.Ok(item) 41: Results.NotFound(); 53return Results.Created($"/catalog/{id}", id); 64return rows > 0 ? Results.NoContent() : Results.NotFound();
Nats.ApiService (6)
Program.cs (6)
26return Results.Json(new { rtt, nats.ServerInfo }); 33return Results.Created($"/stream/{name}", name); 39return Results.Ok(stream.Info); 51return Results.Problem("Make sure the stream is created before publishing."); 54return Results.Created(); 73return Results.Ok(events);
SignalRServerlessWeb (1)
Program.cs (1)
46return Results.Json(negotiateResponse, jsonSerializerOptions);
TestProject.IntegrationServiceA (9)
Postgres\NpgsqlEFCoreExtensions.cs (3)
18return results.Any() ? Results.Ok("Success!") : Results.Problem("Failed"); 22return Results.Problem(e.ToString());
Postgres\PostgresExtensions.cs (3)
23return results.HasRows ? Results.Ok("Success!") : Results.Problem("Failed"); 27return Results.Problem(e.ToString());
Redis\RedisExtensions.cs (3)
24return data == content ? Results.Ok("Success!") : Results.Problem("Failed"); 28return Results.Problem(e.ToString());
TestProject.ServiceA (2)
Program.cs (2)
11app.MapGet("/get-only", () => Results.Ok()); 12app.MapPost("/status/{statusCode:int}", (int statusCode) => Results.StatusCode(statusCode));
WebApplication1 (2)
Program.cs (2)
25return Results.Ok("Table created or already exists."); 35return Results.Ok($"New task created with ID: {id}");
WebApplication2 (2)
Program.cs (2)
25return Results.Ok("Table created or already exists."); 35return Results.Ok($"New task created with ID: {id}");
Yarp.Frontend (1)
Program.cs (1)
23return Results.Content(await response.Content.ReadAsStringAsync(), "application/json");