30 instantiations of ActionDescriptorCollection
Microsoft.AspNetCore.Grpc.Swagger (1)
GrpcSwaggerServiceExtensions.cs (1)
61
public ActionDescriptorCollection ActionDescriptors { get; } = new
ActionDescriptorCollection
(new List<ActionDescriptor>(), 1);
Microsoft.AspNetCore.Mvc.Core (1)
Infrastructure\DefaultActionDescriptorCollectionProvider.cs (1)
159
_collection = new
ActionDescriptorCollection
(
Microsoft.AspNetCore.Mvc.Core.Test (18)
ApplicationModels\EndpointMetadataProviderTest.cs (1)
293
ActionDescriptors = new
ActionDescriptorCollection
(actions, 0);
Infrastructure\ActionSelectionTableTest.cs (1)
548
return ActionSelectionTable<ActionDescriptor>.Create(new
ActionDescriptorCollection
(actions, 0));
Infrastructure\ActionSelectorTest.cs (1)
1071
.Returns(new
ActionDescriptorCollection
(actions, 0));
Infrastructure\ControllerActionInvokerCacheTest.cs (1)
85
ActionDescriptors = new
ActionDescriptorCollection
(actionDescriptors, version: 1);
Routing\ActionEndpointDataSourceBaseTest.cs (4)
24
actions.Setup(m => m.ActionDescriptors).Returns(new
ActionDescriptorCollection
(new List<ActionDescriptor>
47
.Returns(new
ActionDescriptorCollection
(new[]
74
.Returns(new
ActionDescriptorCollection
(new[]
106
.Returns(new
ActionDescriptorCollection
(new[]
Routing\AttributeRouteTest.cs (2)
99
.Returns(new
ActionDescriptorCollection
(actions, version: 2));
792
.Returns(new
ActionDescriptorCollection
(actions, version: 1));
Routing\AttributeRoutingTest.cs (1)
159
var collection = new
ActionDescriptorCollection
(actions, version: 0);
Routing\ControllerActionEndpointDataSourceTest.cs (7)
37
mockDescriptorProvider.Setup(m => m.ActionDescriptors).Returns(new
ActionDescriptorCollection
(actions, 0));
80
.Returns(new
ActionDescriptorCollection
(actions, 0));
157
mockDescriptorProvider.Setup(m => m.ActionDescriptors).Returns(new
ActionDescriptorCollection
(actions, 0));
241
.Returns(new
ActionDescriptorCollection
(actions, 0));
326
mockDescriptorProvider.Setup(m => m.ActionDescriptors).Returns(new
ActionDescriptorCollection
(actions, 0));
408
mockDescriptorProvider.Setup(m => m.ActionDescriptors).Returns(new
ActionDescriptorCollection
(actions, 0));
508
mockDescriptorProvider.Setup(m => m.ActionDescriptors).Returns(new
ActionDescriptorCollection
(actions, 0));
Microsoft.AspNetCore.Mvc.RazorPages.Test (10)
Infrastructure\DefaultPageLoaderTest.cs (1)
25
var actionDescriptors = new
ActionDescriptorCollection
(Array.Empty<ActionDescriptor>(), 1);
Infrastructure\PageActionEndpointDataSourceTest.cs (5)
38
mockDescriptorProvider.Setup(m => m.ActionDescriptors).Returns(new
ActionDescriptorCollection
(actions, 0));
70
mockDescriptorProvider.Setup(m => m.ActionDescriptors).Returns(new
ActionDescriptorCollection
(actions, 0));
128
mockDescriptorProvider.Setup(m => m.ActionDescriptors).Returns(new
ActionDescriptorCollection
(actions, 0));
192
mockDescriptorProvider.Setup(m => m.ActionDescriptors).Returns(new
ActionDescriptorCollection
(actions, 0));
235
mockDescriptorProvider.Setup(m => m.ActionDescriptors).Returns(new
ActionDescriptorCollection
(actions, 0));
src\Mvc\Mvc.Core\test\Routing\ActionEndpointDataSourceBaseTest.cs (4)
24
actions.Setup(m => m.ActionDescriptors).Returns(new
ActionDescriptorCollection
(new List<ActionDescriptor>
47
.Returns(new
ActionDescriptorCollection
(new[]
74
.Returns(new
ActionDescriptorCollection
(new[]
106
.Returns(new
ActionDescriptorCollection
(new[]
33 references to ActionDescriptorCollection
Microsoft.AspNetCore.Grpc.Swagger (1)
GrpcSwaggerServiceExtensions.cs (1)
61
public
ActionDescriptorCollection
ActionDescriptors { get; } = new ActionDescriptorCollection(new List<ActionDescriptor>(), 1);
Microsoft.AspNetCore.Mvc.ApiExplorer (2)
ApiDescriptionGroupCollectionProvider.cs (2)
49
var
actionDescriptors = _actionDescriptorCollectionProvider.ActionDescriptors;
59
private ApiDescriptionGroupCollection GetCollection(
ActionDescriptorCollection
actionDescriptors)
Microsoft.AspNetCore.Mvc.Core (19)
ActionConstraints\ActionConstraintCache.cs (3)
33
var
actionDescriptors = _collectionProvider.ActionDescriptors;
168
private readonly
ActionDescriptorCollection
_actions;
170
public InnerCache(
ActionDescriptorCollection
actions)
Infrastructure\ActionDescriptorCollection.cs (1)
16
/// Initializes a new instance of the <see cref="
ActionDescriptorCollection
"/>.
Infrastructure\ActionDescriptorCollectionProvider.cs (2)
24
/// Returns the current cached <see cref="
ActionDescriptorCollection
"/>
26
public abstract
ActionDescriptorCollection
ActionDescriptors { get; }
Infrastructure\ActionSelectionTable.cs (1)
59
public static ActionSelectionTable<ActionDescriptor> Create(
ActionDescriptorCollection
actions)
Infrastructure\ActionSelector.cs (1)
49
var
actions = _actionDescriptorCollectionProvider.ActionDescriptors;
Infrastructure\DefaultActionDescriptorCollectionProvider.cs (2)
23
private
ActionDescriptorCollection
? _collection;
52
public override
ActionDescriptorCollection
ActionDescriptors
Infrastructure\IActionDescriptorCollectionProvider.cs (3)
17
/// <see cref="
ActionDescriptorCollection
.Version"/> the collection is reconstructed.
32
/// Returns the current cached <see cref="
ActionDescriptorCollection
"/>
34
ActionDescriptorCollection
ActionDescriptors { get; }
Routing\AttributeRoute.cs (2)
53
var
actions = _actionDescriptorCollectionProvider.ActionDescriptors;
68
internal void AddEntries(TreeRouteBuilder builder,
ActionDescriptorCollection
actions)
Routing\KnownRouteValueConstraint.cs (4)
49
var
actionDescriptors = GetAndValidateActionDescriptors(httpContext);
65
private
ActionDescriptorCollection
GetAndValidateActionDescriptors(HttpContext? httpContext)
78
var
actionDescriptors = actionDescriptorsProvider.ActionDescriptors;
90
private string[] GetAndCacheAllMatchingValues(string routeKey,
ActionDescriptorCollection
actionDescriptors)
Microsoft.AspNetCore.Mvc.Core.Test (10)
ApplicationModels\EndpointMetadataProviderTest.cs (1)
296
public
ActionDescriptorCollection
ActionDescriptors { get; }
Infrastructure\ControllerActionInvokerCacheTest.cs (1)
88
public
ActionDescriptorCollection
ActionDescriptors { get; }
Infrastructure\DefaultActionDescriptorCollectionProviderTest.cs (7)
30
var
collection = actionDescriptorCollectionProvider.ActionDescriptors;
53
var
collection1 = actionDescriptorCollectionProvider.ActionDescriptors;
59
var
collection2 = actionDescriptorCollectionProvider.ActionDescriptors;
104
var
collection1 = actionDescriptorCollectionProvider.ActionDescriptors;
106
ActionDescriptorCollection
captured = null;
121
var
collection2 = actionDescriptorCollectionProvider.ActionDescriptors;
143
var
collection3 = actionDescriptorCollectionProvider.ActionDescriptors;
Routing\AttributeRoutingTest.cs (1)
159
var
collection = new ActionDescriptorCollection(actions, version: 0);
Microsoft.AspNetCore.Mvc.RazorPages.Test (1)
Infrastructure\DefaultPageLoaderTest.cs (1)
25
var
actionDescriptors = new ActionDescriptorCollection(Array.Empty<ActionDescriptor>(), 1);