4 writes to ActionDescriptor
Microsoft.AspNetCore.Grpc.Swagger (1)
Internal\GrpcJsonTranscodingDescriptionProvider.cs (1)
66apiDescription.ActionDescriptor = new ActionDescriptor
Microsoft.AspNetCore.Grpc.Swagger.Tests (1)
XmlComments\XmlCommentsDocumentFilterTests.cs (1)
50ActionDescriptor = new ActionDescriptor
Microsoft.AspNetCore.Mvc.ApiExplorer (2)
DefaultApiDescriptionProvider.cs (1)
103ActionDescriptor = action,
EndpointMetadataApiDescriptionProvider.cs (1)
105ActionDescriptor = new ActionDescriptor
28 references to ActionDescriptor
ApiExplorerWebSite (1)
ApiExplorerDataFilter.cs (1)
39if (context.ActionDescriptor == description.ActionDescriptor)
Microsoft.AspNetCore.Grpc.Swagger (2)
Internal\XmlComments\GrpcXmlCommentsDocumentFilter.cs (1)
30.Select(apiDesc => apiDesc.ActionDescriptor)
Internal\XmlComments\GrpcXmlCommentsOperationFilter.cs (1)
24var grpcMetadata = context.ApiDescription.ActionDescriptor.EndpointMetadata.OfType<GrpcMethodMetadata>().FirstOrDefault();
Microsoft.AspNetCore.Mvc.Abstractions (1)
ApiExplorer\ApiDescription.cs (1)
16/// Gets or sets <see cref="ActionDescriptor"/> for this api.
Microsoft.AspNetCore.Mvc.ApiExplorer (1)
EndpointMetadataApiDescriptionProvider.cs (1)
166AddActionDescriptorEndpointMetadata(apiDescription.ActionDescriptor, routeEndpoint.Metadata);
Microsoft.AspNetCore.Mvc.ApiExplorer.Test (12)
DefaultApiDescriptionProviderTest.cs (1)
73Assert.Same(action, description.ActionDescriptor);
EndpointMetadataApiDescriptionProviderTest.cs (11)
51Assert.Equal(declaringTypeName, apiDescription.ActionDescriptor.RouteValues["controller"]); 59Assert.Equal(nameof(EndpointMetadataApiDescriptionProviderTest), apiDescription.ActionDescriptor.RouteValues["controller"]); 763Assert.Equal("FOO", apiDescription.ActionDescriptor.DisplayName); 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.OpenApi (11)
Services\OpenApiDocumentService.cs (11)
247operation.Annotations.Add(OpenApiConstants.DescriptionId, description.ActionDescriptor.Id); 256_operationTransformerContextCache.TryAdd(description.ActionDescriptor.Id, operationContext); 298=> description.ActionDescriptor.EndpointMetadata.OfType<IEndpointSummaryMetadata>().LastOrDefault()?.Summary; 301=> description.ActionDescriptor.EndpointMetadata.OfType<IEndpointDescriptionMetadata>().LastOrDefault()?.Description; 304=> description.ActionDescriptor.AttributeRouteInfo?.Name ?? 305description.ActionDescriptor.EndpointMetadata.OfType<IEndpointNameMetadata>().LastOrDefault()?.EndpointName; 309var actionDescriptor = description.ActionDescriptor; 316return [new OpenApiTag { Name = description.ActionDescriptor.RouteValues["controller"] }]; 380var explicitContentTypes = apiDescription.ActionDescriptor.EndpointMetadata 472var endpointMetadata = description.ActionDescriptor.EndpointMetadata; 682var bindingMetadata = description.ActionDescriptor.EndpointMetadata