6 writes to InvalidModelStateResponseFactory
BasicWebSite (1)
StartupWithCustomInvalidModelStateFactory.cs (1)
23
options.
InvalidModelStateResponseFactory
= context =>
Microsoft.AspNetCore.Mvc.Core (1)
DependencyInjection\ApiBehaviorOptionsSetup.cs (1)
19
options.
InvalidModelStateResponseFactory
= context =>
Microsoft.AspNetCore.Mvc.Core.Test (4)
ApplicationModels\ApiBehaviorApplicationModelProviderTest.cs (1)
214
InvalidModelStateResponseFactory
= _ => null,
Infrastructure\ModelStateInvalidFilterTest.cs (3)
20
InvalidModelStateResponseFactory
= _ => new BadRequestResult(),
40
InvalidModelStateResponseFactory
= _ => new BadRequestResult(),
59
InvalidModelStateResponseFactory
= _ => expected,
4 references to InvalidModelStateResponseFactory
Microsoft.AspNetCore.Mvc.Core (4)
ApiBehaviorOptions.cs (1)
32
/// <see cref="ActionContext.ModelState"/> is invalid is suppressed. <seealso cref="
InvalidModelStateResponseFactory
"/>.
Infrastructure\ModelStateInvalidFilter.cs (3)
32
if (!_apiBehaviorOptions.SuppressModelStateInvalidFilter && _apiBehaviorOptions.
InvalidModelStateResponseFactory
== null)
36
nameof(ApiBehaviorOptions.
InvalidModelStateResponseFactory
)));
79
context.Result = _apiBehaviorOptions.
InvalidModelStateResponseFactory
(context);