4 references to Disallow
Microsoft.AspNetCore.Mvc.Abstractions.Test (2)
ModelBinding\BindingInfoTest.cs (2)
129new FromBodyAttribute() { EmptyBodyBehavior = EmptyBodyBehavior.Disallow } 140Assert.Equal(EmptyBodyBehavior.Disallow, bindingInfo.EmptyBodyBehavior);
Microsoft.AspNetCore.Mvc.Core (1)
FromBodyAttribute.cs (1)
52/// Specifying <see cref="EmptyBodyBehavior.Allow"/> or <see cref="EmptyBodyBehavior.Disallow" /> will override the framework defaults.
Microsoft.AspNetCore.Mvc.Core.Test (1)
ModelBinding\Binders\BodyModelBinderProviderTest.cs (1)
126var allowEmpty = BodyModelBinderProvider.CalculateAllowEmptyBody(EmptyBodyBehavior.Disallow, options);