Implemented interface members:
property
Name
Microsoft.AspNetCore.Mvc.ModelBinding.IModelNameProvider.Name
property
Name
Microsoft.AspNetCore.Http.Metadata.IFromHeaderMetadata.Name
28 writes to Name
ApiExplorerWebSite (1)
Models\OrderDTO.cs (1)
12[FromHeader(Name = "Referrer")]
Aspire.Dashboard (1)
DashboardEndpointsBuilder.cs (1)
42endpoints.MapGet("/api/set-language", async (string? language, string? redirectUrl, [FromHeader(Name = "Accept-Language")] string? acceptLanguage, HttpContext httpContext) =>
BasicWebSite (1)
Controllers\TestingController.cs (1)
27[FromHeader(Name = "X-Pass-Thru")] string passThruValue)
GenericHostWebSite (1)
Controllers\TestingController.cs (1)
26[FromHeader(Name = "X-Pass-Thru")] string passThruValue)
Microsoft.AspNetCore.Http.Extensions.Tests (3)
RequestDelegateGenerator\SharedTypes.cs (3)
698public record ParameterListFromHeader(HttpContext HttpContext, [FromHeader(Name = "X-Custom-Header")] int Value); 703[FromHeader(Name = "X-Custom-Header")] 774public ParameterListStructWithMultipleParameterizedContructor(HttpContext httpContext, [FromHeader(Name = "Value")] int value)
Microsoft.AspNetCore.Http.Microbenchmarks (3)
src\Http\Http.Extensions\test\RequestDelegateGenerator\SharedTypes.cs (3)
698public record ParameterListFromHeader(HttpContext HttpContext, [FromHeader(Name = "X-Custom-Header")] int Value); 703[FromHeader(Name = "X-Custom-Header")] 774public ParameterListStructWithMultipleParameterizedContructor(HttpContext httpContext, [FromHeader(Name = "Value")] int value)
Microsoft.AspNetCore.Mvc.ApiExplorer.Test (1)
DefaultApiDescriptionProviderTest.cs (1)
2783[FromHeader(Name = "Name")]
Microsoft.AspNetCore.Mvc.IntegrationTests (6)
HeaderModelBinderIntegrationTest.cs (6)
21[FromHeader(Name = "Header")] 153[FromHeader(Name = "Header")] 200[FromHeader(Name = "Header")] 452[FromHeader(Name = "OneCommaSeparatedString")] 467[FromHeader(Name = "EnumerableOfDouble")] 473[FromHeader(Name = "ListOfOrderWithTypeConverter")]
Microsoft.AspNetCore.OpenApi.Tests (11)
Services\OpenApiDocumentService\OpenApiDocumentServiceTests.Parameters.cs (10)
21builder.MapGet("/api", ([FromHeader(Name = "X-Header")] string header) => { }); 100builder.MapGet("/api/todos", ([FromHeader(Name = "X-Header")] string header) => { }); 101builder.MapGet("/api/users", ([FromHeader(Name = "X-Header")] Guid? header) => { }); 102builder.MapGet("/api/projects", ([FromHeader(Name = "X-Header")] string header = "0000-0000-0000-0000") => { }); 176builder.MapGet("/api/accept", ([FromHeader(Name = "Accept")] string value) => { }); 177builder.MapGet("/api/accept-lower", ([FromHeader(Name = "accept")] string value) => { }); 178builder.MapGet("/api/authorization", ([FromHeader(Name = "Authorization")] string value) => { }); 179builder.MapGet("/api/authorization-lower", ([FromHeader(Name = "authorization")] string value) => { }); 180builder.MapGet("/api/content-type", ([FromHeader(Name = "Content-Type")] string value) => { }); 181builder.MapGet("/api/content-type-lower", ([FromHeader(Name = "content-type")] string value) => { });
Services\OpenApiGeneratorTests.cs (1)
939ValidateParameter(GetOpenApiOperation(([FromHeader(Name = "headerName")] string param) => ""), "headerName");
1 reference to Name
Microsoft.AspNetCore.Mvc.Core (1)
FromHeaderAttribute.cs (1)
14/// or the name specified in the <see cref="Name"/> property.