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