2 instantiations of SupplyParameterFromFormAttribute
Microsoft.AspNetCore.Components.Web.Tests (2)
Forms\Mapping\SupplyParameterFromFormTest.cs (2)
73[SupplyParameterFromForm] public string FormParameter { get; set; } 78[SupplyParameterFromForm(FormName = "handler-name")] public string FormParameter { get; set; }
6 references to SupplyParameterFromFormAttribute
Microsoft.AspNetCore.Components.Web (6)
Forms\Mapping\SupplyParameterFromFormServiceCollectionExtensions.cs (2)
10/// Extension methods for configuring <see cref="SupplyParameterFromFormAttribute"/> within an <see cref="IServiceCollection"/>. 15/// Adds support for <see cref="SupplyParameterFromFormAttribute"/> within the <see cref="IServiceCollection"/>.
Forms\Mapping\SupplyParameterFromFormValueProvider.cs (4)
41if (_formValueMapper is not null && parameterInfo.Attribute is SupplyParameterFromFormAttribute supplyParameterFromFormAttribute) 58if (_formValueMapper is { } valueMapper && parameterInfo.Attribute is SupplyParameterFromFormAttribute) 76var attribute = (SupplyParameterFromFormAttribute)parameterInfo.Attribute; // Must be a valid cast because we check in CanSupplyValue