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