1 override of CanAcceptDataFrom
Microsoft.AspNetCore.Mvc.Abstractions (1)
ModelBinding\CompositeBindingSource.cs (1)
78public override bool CanAcceptDataFrom(BindingSource bindingSource)
13 references to CanAcceptDataFrom
FormatterWebSite (1)
ValidateBodyParameterAttribute.cs (1)
46return bindingSource?.CanAcceptDataFrom(BindingSource.Body) ?? false;
Microsoft.AspNetCore.Mvc.Abstractions (1)
ModelBinding\CompositeBindingSource.cs (1)
92if (source.CanAcceptDataFrom(bindingSource))
Microsoft.AspNetCore.Mvc.Core (4)
ModelBinding\Binders\BodyModelBinderProvider.cs (1)
73context.BindingInfo.BindingSource.CanAcceptDataFrom(BindingSource.Body))
ModelBinding\Binders\HeaderModelBinderProvider.cs (1)
23!bindingInfo.BindingSource.CanAcceptDataFrom(BindingSource.Header))
ModelBinding\Binders\ServicesModelBinderProvider.cs (1)
24context.BindingInfo.BindingSource.CanAcceptDataFrom(BindingSource.Services))
ModelBinding\BindingSourceValueProvider.cs (1)
74if (bindingSource.CanAcceptDataFrom(BindingSource))
Microsoft.AspNetCore.Mvc.Core.Test (5)
ModelBinding\Metadata\BindingSourceTest.cs (5)
23() => BindingSource.Query.CanAcceptDataFrom(bindingSource), 47var result = BindingSource.ModelBinding.CanAcceptDataFrom(bindingSource); 57var result = BindingSource.Query.CanAcceptDataFrom(BindingSource.Query); 84var result = BindingSource.ModelBinding.CanAcceptDataFrom(bindingSource); 94var result = BindingSource.Query.CanAcceptDataFrom(BindingSource.Path);
Microsoft.AspNetCore.Mvc.IntegrationTests (2)
GenericModelBinderIntegrationTest.cs (2)
153if (allowedBindingSource?.CanAcceptDataFrom(BindAddressAttribute.Source) == true) 174!allowedBindingSource.CanAcceptDataFrom(BindAddressAttribute.Source))