12 references to Problem
Microsoft.AspNetCore.Http.Results.Tests (4)
ResultsTests.cs (4)
1283var result = Results.Problem(detail, instance, statusCode, title, type, extensions) as ProblemHttpResult; 1307var result = Results.Problem(detail, instance, statusCode, title, type, extensions) as ProblemHttpResult; 1329var result = Results.Problem(statusCode: statusCode) as ProblemHttpResult; 1345var result = Results.Problem() as ProblemHttpResult;
MinimalSample (1)
Program.cs (1)
85"plain" => Results.Problem(statusCode: 500, extensions: extensions),
SimpleWebSiteWithWebApplicationBuilder (1)
Program.cs (1)
40app.MapGet("/problem", () => Results.Problem("Some problem"));
TestProject.IntegrationServiceA (6)
Postgres\NpgsqlEFCoreExtensions.cs (2)
18return results.Any() ? Results.Ok("Success!") : Results.Problem("Failed"); 22return Results.Problem(e.ToString());
Postgres\PostgresExtensions.cs (2)
23return results.HasRows ? Results.Ok("Success!") : Results.Problem("Failed"); 27return Results.Problem(e.ToString());
Redis\RedisExtensions.cs (2)
24return data == content ? Results.Ok("Success!") : Results.Problem("Failed"); 28return Results.Problem(e.ToString());