22 writes to EndpointMetadata
Microsoft.AspNetCore.Grpc.Swagger (1)
Internal\GrpcJsonTranscodingDescriptionProvider.cs (1)
74EndpointMetadata = routeEndpoint.Metadata.ToList()
Microsoft.AspNetCore.Grpc.Swagger.Tests (1)
XmlComments\XmlCommentsDocumentFilterTests.cs (1)
56EndpointMetadata = new List<object>
Microsoft.AspNetCore.Mvc.ApiExplorer (1)
EndpointMetadataApiDescriptionProvider.cs (1)
471actionDescriptor.EndpointMetadata = new List<object>(endpointMetadata);
Microsoft.AspNetCore.Mvc.ApiExplorer.Test (5)
DefaultApiDescriptionProviderTest.cs (5)
96action.EndpointMetadata = new List<object>() { new EndpointGroupNameAttribute("Customers") }; 111action.EndpointMetadata = new List<object>() { new EndpointGroupNameAttribute("Customers") }; 529action.EndpointMetadata = new List<object>() { new ProducesResponseTypeMetadata(200, typeof(Product)) }; 548action.EndpointMetadata = new List<object>() { new ProducesResponseTypeMetadata(200, typeof(Product)) }; 1268action.EndpointMetadata = new List<object>() { new XmlOnlyMetadata() };
Microsoft.AspNetCore.Mvc.Core (1)
ApplicationModels\ControllerActionDescriptorBuilder.cs (1)
193actionDescriptor.EndpointMetadata = new List<object>(selectorModel.EndpointMetadata);
Microsoft.AspNetCore.Mvc.Core.Test (3)
Routing\ActionEndpointFactoryTest.cs (1)
477actionDescriptor.EndpointMetadata = metadata;
Routing\ControllerActionEndpointDataSourceTest.cs (2)
395EndpointMetadata = new[] { "A" }, 581action.EndpointMetadata = metadata;
Microsoft.AspNetCore.Mvc.RazorPages (2)
ApplicationModels\CompiledPageActionDescriptorBuilder.cs (1)
50EndpointMetadata = CreateEndPointMetadata(applicationModel),
Infrastructure\PageActionDescriptorProvider.cs (1)
103EndpointMetadata = selector.EndpointMetadata.ToList(),
Microsoft.AspNetCore.Mvc.RazorPages.Test (6)
ApplicationModels\CompiledPageActionDescriptorBuilderTest.cs (2)
24EndpointMetadata = new List<object>(), 407EndpointMetadata = new List<object> { metadata3, metadata4, },
Infrastructure\PageActionEndpointDataSourceTest.cs (4)
110EndpointMetadata = new List<object>() { "A" } 123EndpointMetadata = new List<object>() { "B" } 230EndpointMetadata = new List<object>() { "initial-metadata" } 289action.EndpointMetadata = metadata;
Microsoft.AspNetCore.Mvc.Test (1)
Routing\ActionConstraintMatcherPolicyTest.cs (1)
347EndpointMetadata = new List<object>()
Microsoft.AspNetCore.OpenApi.Tests (1)
Services\OpenApiDocumentServiceTestsBase.cs (1)
228action.EndpointMetadata = [..action.MethodInfo.GetCustomAttributes()];
38 references to EndpointMetadata
Microsoft.AspNetCore.Grpc.Swagger (3)
Internal\XmlComments\GrpcXmlCommentsDocumentFilter.cs (2)
31.Where(actionDesc => actionDesc != null && (actionDesc.EndpointMetadata?.Any(m => m is GrpcMethodMetadata) ?? false)) 37var grpcMethodMetadata = nameAndType.Value.EndpointMetadata.OfType<GrpcMethodMetadata>().First();
Internal\XmlComments\GrpcXmlCommentsOperationFilter.cs (1)
24var grpcMetadata = context.ApiDescription.ActionDescriptor.EndpointMetadata.OfType<GrpcMethodMetadata>().FirstOrDefault();
Microsoft.AspNetCore.Mvc.ApiExplorer (3)
ApiResponseTypeProvider.cs (1)
53var producesResponseMetadata = action.EndpointMetadata.OfType<IProducesResponseTypeMetadata>().ToList();
DefaultApiDescriptionProvider.cs (2)
129var acceptsMetadata = action.EndpointMetadata.OfType<IAcceptsMetadata>().LastOrDefault(); 508var endpointGroupName = action.EndpointMetadata.OfType<IEndpointGroupNameMetadata>().LastOrDefault();
Microsoft.AspNetCore.Mvc.ApiExplorer.Test (8)
EndpointMetadataApiDescriptionProviderTest.cs (8)
771Assert.NotEmpty(apiDescription.ActionDescriptor.EndpointMetadata); 773var apiExplorerSettings = apiDescription.ActionDescriptor.EndpointMetadata 1446Assert.NotEmpty(apiDescription.ActionDescriptor.EndpointMetadata); 1448var descriptionMetadata = apiDescription.ActionDescriptor.EndpointMetadata.OfType<IEndpointDescriptionMetadata>().SingleOrDefault(); 1452var summaryMetadata = apiDescription.ActionDescriptor.EndpointMetadata.OfType<IEndpointSummaryMetadata>().SingleOrDefault(); 1477Assert.NotEmpty(apiDescription.ActionDescriptor.EndpointMetadata); 1479var descriptionMetadata = apiDescription.ActionDescriptor.EndpointMetadata.OfType<IEndpointDescriptionMetadata>().SingleOrDefault(); 1483var summaryMetadata = apiDescription.ActionDescriptor.EndpointMetadata.OfType<IEndpointSummaryMetadata>().SingleOrDefault();
Microsoft.AspNetCore.Mvc.Core (2)
Routing\ActionEndpointFactory.cs (2)
362if (action.EndpointMetadata != null) 364foreach (var d in action.EndpointMetadata)
Microsoft.AspNetCore.Mvc.Core.Test (9)
ApplicationModels\ControllerActionDescriptorProviderTests.cs (8)
263Assert.NotNull(anonymousAction.EndpointMetadata); 265Assert.Collection(anonymousAction.EndpointMetadata, 271Assert.NotNull(authorizeAction.EndpointMetadata); 273Assert.Collection(authorizeAction.EndpointMetadata, 288Assert.NotNull(action.EndpointMetadata); 290Assert.Collection(action.EndpointMetadata, 325var httpMethodAttribute = Assert.Single(descriptor.EndpointMetadata.OfType<HttpMethodAttribute>()); 328var lastHttpMethodMetadata = descriptor.EndpointMetadata.OfType<IHttpMethodMetadata>().Last();
Infrastructure\ActionSelectionTableTest.cs (1)
555var metadata = new List<object>(a.EndpointMetadata ?? Array.Empty<object>());
Microsoft.AspNetCore.Mvc.RazorPages (1)
ApplicationModels\PageApplicationModel.cs (1)
48EndpointMetadata = new List<object>(ActionDescriptor.EndpointMetadata ?? Array.Empty<object>());
Microsoft.AspNetCore.Mvc.RazorPages.Test (2)
ApplicationModels\CompiledPageActionDescriptorBuilderTest.cs (1)
423Assert.Equal(new[] { metadata1, metadata2, metadata3, metadata4, metadata5, metadata6 }, actual.EndpointMetadata);
Infrastructure\PageActionDescriptorProviderTest.cs (1)
232Assert.Single(descriptor.EndpointMetadata, expected);
Microsoft.AspNetCore.Mvc.Test (2)
Routing\ActionConstraintMatcherPolicyTest.cs (2)
474if (action?.EndpointMetadata != null) 476metadata.AddRange(action.EndpointMetadata);
Microsoft.AspNetCore.OpenApi (7)
Services\OpenApiDocumentService.cs (7)
298=> description.ActionDescriptor.EndpointMetadata.OfType<IEndpointSummaryMetadata>().LastOrDefault()?.Summary; 301=> description.ActionDescriptor.EndpointMetadata.OfType<IEndpointDescriptionMetadata>().LastOrDefault()?.Description; 305description.ActionDescriptor.EndpointMetadata.OfType<IEndpointNameMetadata>().LastOrDefault()?.EndpointName; 310if (actionDescriptor.EndpointMetadata?.OfType<ITagsMetadata>().LastOrDefault() is { } tagsMetadata) 380var explicitContentTypes = apiDescription.ActionDescriptor.EndpointMetadata 472var endpointMetadata = description.ActionDescriptor.EndpointMetadata; 682var bindingMetadata = description.ActionDescriptor.EndpointMetadata
Microsoft.AspNetCore.OpenApi.Tests (1)
Services\OpenApiDocumentServiceTestsBase.cs (1)
233action.EndpointMetadata.Add(attribute);