5 writes to ClientErrorMapping
Microsoft.AspNetCore.Mvc.Core.Test (5)
ControllerBaseTest.cs (1)
2557
ClientErrorMapping
=
Infrastructure\ProblemDetalsClientErrorFactoryTest.cs (4)
19
ClientErrorMapping
=
46
ClientErrorMapping
=
76
ClientErrorMapping
=
102
ClientErrorMapping
=
7 references to ClientErrorMapping
Microsoft.AspNetCore.Mvc.Core (5)
ApiBehaviorOptions.cs (1)
71
/// By default, <see cref="
ClientErrorMapping
"/> is used to map <see cref="IClientErrorActionResult"/> to a
ClientErrorData.cs (1)
8
/// produced by consumers of <see cref="ApiBehaviorOptions.
ClientErrorMapping
"/>.
DependencyInjection\ApiBehaviorOptionsSetup.cs (1)
57
options.
ClientErrorMapping
[statusCode] = new()
Infrastructure\DefaultProblemDetailsFactory.cs (1)
99
if (_options.
ClientErrorMapping
.TryGetValue(statusCode, out var clientErrorData))
ProducesErrorResponseTypeAttribute.cs (1)
11
/// client error type to be <see cref="ProblemDetails"/>, if mapping client errors (<see cref="ApiBehaviorOptions.
ClientErrorMapping
"/>)
Microsoft.AspNetCore.Mvc.Core.Test (2)
DependencyInjection\ApiBehaviorOptionsSetupTest.cs (2)
27
Assert.Equal(expected, options.
ClientErrorMapping
.Keys);
57
var factory = GetProblemDetailsFactory(options => options.
ClientErrorMapping
[400].Link = link);