2 instantiations of ProblemHttpResult
Microsoft.AspNetCore.Http.Results (2)
TypedResults.cs (2)
799return new(problemDetails); 811return new(problemDetails);
44 references to ProblemHttpResult
Microsoft.AspNetCore.Http.Results (8)
ProblemHttpResult.cs (2)
17/// Creates a new <see cref="ProblemHttpResult"/> instance with 54var logger = loggerFactory.CreateLogger(typeof(ProblemHttpResult));
TypedResults.cs (6)
756/// <returns>The created <see cref="ProblemHttpResult"/> for the response.</returns> 757public static ProblemHttpResult Problem( 777/// <returns>The created <see cref="ProblemHttpResult"/> for the response.</returns> 779public static ProblemHttpResult Problem( 806/// <returns>The created <see cref="ProblemHttpResult"/> for the response.</returns> 807public static ProblemHttpResult Problem(ProblemDetails problemDetails)
Microsoft.AspNetCore.Http.Results.Tests (34)
JsonResultTests.cs (1)
179var result = new ProblemHttpResult(details);
ProblemResultTests.cs (7)
21var result = new ProblemHttpResult(details); 50var result = new ProblemHttpResult(details); 82var result = new ProblemHttpResult(details); 114var result = new ProblemHttpResult(details); 146var result = new ProblemHttpResult(details); 175var result = new ProblemHttpResult(details); 195var result = new ProblemHttpResult(new());
ResultsTests.cs (20)
1259var result = Results.Problem(detail, instance, statusCode, title, type, extensions) as ProblemHttpResult; 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; 1364var result = Results.Problem(problem) as ProblemHttpResult; 1380var result = Results.Problem(problem) as ProblemHttpResult; 1411var result = Results.ValidationProblem(errors, detail, instance, statusCode, title, type, extensions) as ProblemHttpResult; 1442var result = Results.ValidationProblem(errors, detail, instance, statusCode, title, type, extensions) as ProblemHttpResult; 1765(() => Results.Problem(new()), typeof(ProblemHttpResult)), 1780(() => Results.ValidationProblem(new Dictionary<string, string[]>(), null, null, null, null, null, null), typeof(ProblemHttpResult))
TypedResultsTests.cs (6)
1075var result = TypedResults.Problem(detail, instance, statusCode, title, type, extensions); 1099var result = TypedResults.Problem(detail, instance, statusCode, title, type, extensions); 1120var result = TypedResults.Problem(statusCode: statusCode); 1137var result = TypedResults.Problem(); 1156var result = TypedResults.Problem(problem); 1172var result = TypedResults.Problem(problem);
Microsoft.AspNetCore.Identity (1)
IdentityApiEndpointRouteBuilderExtensions.cs (1)
90routeGroup.MapPost("/login", async Task<Results<Ok<AccessTokenResponse>, EmptyHttpResult, ProblemHttpResult>>
Microsoft.AspNetCore.Mvc.ApiExplorer.Test (1)
EndpointMetadataApiDescriptionProviderTest.cs (1)
388async Task<Results<Created<InferredJsonClass>, ProblemHttpResult>> () =>