4 implementations of IActionDescriptorCollectionProvider
Microsoft.AspNetCore.Grpc.Swagger (1)
GrpcSwaggerServiceExtensions.cs (1)
59private sealed class EmptyActionDescriptorCollectionProvider : IActionDescriptorCollectionProvider
Microsoft.AspNetCore.Mvc.Core (1)
Infrastructure\ActionDescriptorCollectionProvider.cs (1)
21public abstract class ActionDescriptorCollectionProvider : IActionDescriptorCollectionProvider
Microsoft.AspNetCore.Mvc.Core.Test (2)
ApplicationModels\EndpointMetadataProviderTest.cs (1)
289private sealed class MockActionDescriptorCollectionProvider : IActionDescriptorCollectionProvider
Infrastructure\ControllerActionInvokerCacheTest.cs (1)
81private class CustomActionDescriptorCollectionProvider : IActionDescriptorCollectionProvider
76 references to IActionDescriptorCollectionProvider
Microsoft.AspNetCore.Grpc.Swagger (2)
GrpcSwaggerServiceExtensions.cs (2)
39var actionDescriptorCollectionProvider = serviceProvider.GetService<IActionDescriptorCollectionProvider>();
Microsoft.AspNetCore.Mvc.ApiExplorer (7)
ApiDescriptionGroupCollectionProvider.cs (4)
13private readonly IActionDescriptorCollectionProvider _actionDescriptorCollectionProvider; 23/// The <see cref="IActionDescriptorCollectionProvider"/>. 29IActionDescriptorCollectionProvider actionDescriptorCollectionProvider, 37IActionDescriptorCollectionProvider actionDescriptorCollectionProvider,
DependencyInjection\EndpointMethodInfoApiExplorerServiceCollectionExtensions.cs (2)
24services.TryAddSingleton<IActionDescriptorCollectionProvider, DefaultActionDescriptorCollectionProvider>(); 26sp.GetRequiredService<IActionDescriptorCollectionProvider>(),
DependencyInjection\MvcApiExplorerMvcCoreBuilderExtensions.cs (1)
36sp.GetRequiredService<IActionDescriptorCollectionProvider>(),
Microsoft.AspNetCore.Mvc.Core (24)
ActionConstraints\ActionConstraintCache.cs (2)
15private readonly IActionDescriptorCollectionProvider _collectionProvider; 21IActionDescriptorCollectionProvider collectionProvider,
DependencyInjection\MvcCoreServiceCollectionExtensions.cs (1)
155services.TryAddSingleton<IActionDescriptorCollectionProvider, DefaultActionDescriptorCollectionProvider>();
Infrastructure\ActionDescriptorCollectionProvider.cs (3)
12/// A base class for <see cref="IActionDescriptorCollectionProvider"/> which also provides an <see cref="IChangeToken"/> 17/// <see cref="IActionDescriptorCollectionProvider"/>. To retrieve an instance of <see cref="ActionDescriptorCollectionProvider"/>, 18/// obtain the <see cref="IActionDescriptorCollectionProvider"/> from the dependency injection provider and
Infrastructure\ActionSelector.cs (3)
20private readonly IActionDescriptorCollectionProvider _actionDescriptorCollectionProvider; 30/// The <see cref="IActionDescriptorCollectionProvider"/>. 36IActionDescriptorCollectionProvider actionDescriptorCollectionProvider,
Infrastructure\IActionDescriptorChangeProvider.cs (1)
13/// <see cref="IActionDescriptorCollectionProvider"/>.
Routing\ActionEndpointDataSourceBase.cs (2)
17private readonly IActionDescriptorCollectionProvider _actions; 33public ActionEndpointDataSourceBase(IActionDescriptorCollectionProvider actions)
Routing\AttributeRoute.cs (2)
17private readonly IActionDescriptorCollectionProvider _actionDescriptorCollectionProvider; 24IActionDescriptorCollectionProvider actionDescriptorCollectionProvider,
Routing\AttributeRouting.cs (1)
22services.GetRequiredService<IActionDescriptorCollectionProvider>(),
Routing\ControllerActionEndpointDataSource.cs (1)
22IActionDescriptorCollectionProvider actions,
Routing\ControllerActionEndpointDataSourceFactory.cs (2)
11private readonly IActionDescriptorCollectionProvider _actions; 16IActionDescriptorCollectionProvider actions,
Routing\KnownRouteValueConstraint.cs (6)
19private readonly IActionDescriptorCollectionProvider _actionDescriptorCollectionProvider; 25/// <param name="actionDescriptorCollectionProvider">The <see cref="IActionDescriptorCollectionProvider"/>.</param> 26public KnownRouteValueConstraint(IActionDescriptorCollectionProvider actionDescriptorCollectionProvider) 67var actionDescriptorsProvider = _actionDescriptorCollectionProvider; 75actionDescriptorsProvider = services.GetRequiredService<IActionDescriptorCollectionProvider>(); 83nameof(IActionDescriptorCollectionProvider.ActionDescriptors),
Microsoft.AspNetCore.Mvc.Core.Test (28)
Infrastructure\ActionSelectorTest.cs (1)
1067var actionProvider = new Mock<IActionDescriptorCollectionProvider>(MockBehavior.Strict);
Routing\ActionEndpointDataSourceBaseTest.cs (4)
23var actions = new Mock<IActionDescriptorCollectionProvider>(); 44var actionDescriptorCollectionProviderMock = new Mock<IActionDescriptorCollectionProvider>(); 127private protected ActionEndpointDataSourceBase CreateDataSource(IActionDescriptorCollectionProvider actions = null) 154private protected abstract ActionEndpointDataSourceBase CreateDataSource(IActionDescriptorCollectionProvider actions, ActionEndpointFactory endpointFactory);
Routing\AttributeRouteTest.cs (4)
786private static Mock<IActionDescriptorCollectionProvider> CreateActionDescriptorProvider( 789var actionDescriptorProvider = new Mock<IActionDescriptorCollectionProvider>(MockBehavior.Strict); 799IActionDescriptorCollectionProvider actionDescriptorProvider) 806IActionDescriptorCollectionProvider actionDescriptorProvider)
Routing\AttributeRoutingTest.cs (1)
161var actionDescriptorProvider = new Mock<IActionDescriptorCollectionProvider>();
Routing\ControllerActionEndpointDataSourceTest.cs (8)
36var mockDescriptorProvider = new Mock<IActionDescriptorCollectionProvider>(); 77var mockDescriptorProvider = new Mock<IActionDescriptorCollectionProvider>(); 156var mockDescriptorProvider = new Mock<IActionDescriptorCollectionProvider>(); 238var mockDescriptorProvider = new Mock<IActionDescriptorCollectionProvider>(); 325var mockDescriptorProvider = new Mock<IActionDescriptorCollectionProvider>(); 407var mockDescriptorProvider = new Mock<IActionDescriptorCollectionProvider>(); 507var mockDescriptorProvider = new Mock<IActionDescriptorCollectionProvider>(); 551private protected override ActionEndpointDataSourceBase CreateDataSource(IActionDescriptorCollectionProvider actions, ActionEndpointFactory endpointFactory)
Routing\KnownRouteValueConstraintTests.cs (10)
27var descriptorCollectionProvider = CreateActionDescriptorCollectionProvider(actionDescriptor); 72var descriptorCollectionProvider = CreateActionDescriptorCollectionProvider(new ActionDescriptor()); 98var descriptorCollectionProvider = CreateActionDescriptorCollectionProvider(actionDescriptor); 135var descriptorCollectionProvider = CreateActionDescriptorCollectionProvider(actionDescriptor); 164var descriptorCollectionProvider = CreateActionDescriptorCollectionProvider(actionDescriptor); 187var actionDescriptorCollectionProvider = Mock.Of<IActionDescriptorCollectionProvider>(); 221var provider = CreateActionDescriptorCollectionProvider(actionDescriptor); 250var provider = CreateActionDescriptorCollectionProvider(actionDescriptor); 271private static IActionDescriptorCollectionProvider CreateActionDescriptorCollectionProvider(ActionDescriptor actionDescriptor)
Microsoft.AspNetCore.Mvc.RazorPages (3)
Infrastructure\PageActionEndpointDataSource.cs (1)
21IActionDescriptorCollectionProvider actions,
Infrastructure\PageActionEndpointDataSourceFactory.cs (2)
12private readonly IActionDescriptorCollectionProvider _actions; 17IActionDescriptorCollectionProvider actions,
Microsoft.AspNetCore.Mvc.RazorPages.Test (12)
Infrastructure\DefaultPageLoaderTest.cs (2)
21private readonly IActionDescriptorCollectionProvider ActionDescriptorCollectionProvider; 26ActionDescriptorCollectionProvider = Mock.Of<IActionDescriptorCollectionProvider>(v => v.ActionDescriptors == actionDescriptors);
Infrastructure\PageActionEndpointDataSourceTest.cs (6)
37var mockDescriptorProvider = new Mock<IActionDescriptorCollectionProvider>(); 69var mockDescriptorProvider = new Mock<IActionDescriptorCollectionProvider>(); 127var mockDescriptorProvider = new Mock<IActionDescriptorCollectionProvider>(); 191var mockDescriptorProvider = new Mock<IActionDescriptorCollectionProvider>(); 234var mockDescriptorProvider = new Mock<IActionDescriptorCollectionProvider>(); 263private protected override ActionEndpointDataSourceBase CreateDataSource(IActionDescriptorCollectionProvider actions, ActionEndpointFactory endpointFactory)
src\Mvc\Mvc.Core\test\Routing\ActionEndpointDataSourceBaseTest.cs (4)
23var actions = new Mock<IActionDescriptorCollectionProvider>(); 44var actionDescriptorCollectionProviderMock = new Mock<IActionDescriptorCollectionProvider>(); 127private protected ActionEndpointDataSourceBase CreateDataSource(IActionDescriptorCollectionProvider actions = null) 154private protected abstract ActionEndpointDataSourceBase CreateDataSource(IActionDescriptorCollectionProvider actions, ActionEndpointFactory endpointFactory);