2 interfaces inheriting from IActionConstraintMetadata
Microsoft.AspNetCore.Mvc.Abstractions (2)
ActionConstraints\IActionConstraint.cs (1)
37
public interface IActionConstraint :
IActionConstraintMetadata
ActionConstraints\IActionConstraintFactory.cs (1)
16
public interface IActionConstraintFactory :
IActionConstraintMetadata
5 implementations of IActionConstraintMetadata
Microsoft.AspNetCore.Mvc.Core.Test (5)
ApplicationModels\ControllerActionDescriptorProviderTests.cs (2)
1899
private class RouteAndConstraintAttribute : Attribute,
IActionConstraintMetadata
, IRouteTemplateProvider
1914
private class ConstraintAttribute : Attribute,
IActionConstraintMetadata
ApplicationModels\DefaultApplicationModelProviderTest.cs (2)
1830
private class RouteAndConstraintAttribute : Attribute,
IActionConstraintMetadata
, IRouteTemplateProvider
1845
private class ConstraintAttribute : Attribute,
IActionConstraintMetadata
Infrastructure\ActionSelectorTest.cs (1)
1167
private class BooleanConstraintMarker :
IActionConstraintMetadata
74 references to IActionConstraintMetadata
Microsoft.AspNetCore.Mvc.Abstractions (6)
Abstractions\ActionDescriptor.cs (1)
44
public IList<
IActionConstraintMetadata
>? ActionConstraints { get; set; }
ActionConstraints\ActionConstraintItem.cs (5)
7
/// Represents an <see cref="
IActionConstraintMetadata
"/> with or without a corresponding
15
/// <param name="metadata">The <see cref="
IActionConstraintMetadata
"/> instance.</param>
16
public ActionConstraintItem(
IActionConstraintMetadata
metadata)
29
/// The <see cref="
IActionConstraintMetadata
"/> instance.
31
public
IActionConstraintMetadata
Metadata { get; }
Microsoft.AspNetCore.Mvc.ApiExplorer.Test (1)
DefaultApiDescriptionProviderTest.cs (1)
141
action.ActionConstraints = new List<
IActionConstraintMetadata
>()
Microsoft.AspNetCore.Mvc.Core (13)
ActionConstraints\DefaultActionConstraintProvider.cs (1)
11
/// <see cref="
IActionConstraintMetadata
"/> implements <see cref="IActionConstraint"/> or
ApplicationModels\ActionAttributeRouteModel.cs (2)
54
var actionConstraints = new List<
IActionConstraintMetadata
>();
118
private static void AddActionConstraints(SelectorModel selector, IList<
IActionConstraintMetadata
>? actionConstraints)
ApplicationModels\ControllerActionDescriptorBuilder.cs (1)
185
actionDescriptor.ActionConstraints = new List<
IActionConstraintMetadata
>(selectorModel.ActionConstraints);
ApplicationModels\DefaultApplicationModelProvider.cs (1)
628
AddRange(selectorModel.ActionConstraints, attributes.OfType<
IActionConstraintMetadata
>());
ApplicationModels\SelectorModel.cs (4)
18
ActionConstraints = new List<
IActionConstraintMetadata
>();
30
ActionConstraints = new List<
IActionConstraintMetadata
>(other.ActionConstraints);
45
/// The list of <see cref="
IActionConstraintMetadata
"/>.
47
public IList<
IActionConstraintMetadata
> ActionConstraints { get; }
Routing\ActionConstraintMatcherPolicy.cs (3)
42
if (action?.ActionConstraints is IList<
IActionConstraintMetadata
> { Count: > 0 } constraints && HasSignificantActionConstraint(constraints))
53
static bool HasSignificantActionConstraint(IList<
IActionConstraintMetadata
> constraints)
57
var
actionConstraint = constraints[i];
Routing\ActionEndpointFactory.cs (1)
416
foreach (
var
actionConstraint in action.ActionConstraints)
Microsoft.AspNetCore.Mvc.Core.Test (19)
ActionConstraints\ActionConstraintCacheTest.cs (2)
64
new TestActionConstraint() as
IActionConstraintMetadata
101
new TestActionConstraint() as
IActionConstraintMetadata
ConsumesAttributeTests.cs (3)
305
ActionConstraints = new List<
IActionConstraintMetadata
>() { consumesFilter },
335
ActionConstraints = new List<
IActionConstraintMetadata
>() { consumesFilter },
364
ActionConstraints = new List<
IActionConstraintMetadata
>() { consumesFilter },
Infrastructure\ActionSelectorTest.cs (14)
525
ActionConstraints = new List<
IActionConstraintMetadata
>()
555
ActionConstraints = new List<
IActionConstraintMetadata
>()
563
ActionConstraints = new List<
IActionConstraintMetadata
>()
587
ActionConstraints = new List<
IActionConstraintMetadata
>()
596
ActionConstraints = new List<
IActionConstraintMetadata
>()
621
ActionConstraints = new List<
IActionConstraintMetadata
>()
653
ActionConstraints = new List<
IActionConstraintMetadata
>()
680
ActionConstraints = new List<
IActionConstraintMetadata
>()
710
ActionConstraints = new List<
IActionConstraintMetadata
>()
718
ActionConstraints = new List<
IActionConstraintMetadata
>()
743
ActionConstraints = new List<
IActionConstraintMetadata
>()
753
ActionConstraints = new List<
IActionConstraintMetadata
>()
779
ActionConstraints = new List<
IActionConstraintMetadata
>()
789
ActionConstraints = new List<
IActionConstraintMetadata
>()
Microsoft.AspNetCore.Mvc.Cors.Test (10)
CorsApplicationModelProviderTest.cs (10)
37
var
constraint = Assert.Single(selector.ActionConstraints, c => c is HttpMethodActionConstraint);
56
var
constraint = Assert.Single(selector.ActionConstraints, c => c is HttpMethodActionConstraint);
74
var
constraint = Assert.Single(selector.ActionConstraints, c => c is HttpMethodActionConstraint);
93
var
constraint = Assert.Single(selector.ActionConstraints, c => c is HttpMethodActionConstraint);
112
var
constraint = Assert.Single(selector.ActionConstraints, c => c is HttpMethodActionConstraint);
130
var
constraint = Assert.Single(selector.ActionConstraints, c => c is HttpMethodActionConstraint);
151
var
constraint = Assert.Single(selector.ActionConstraints, c => c is HttpMethodActionConstraint);
170
var
constraint = Assert.Single(selector.ActionConstraints, c => c is HttpMethodActionConstraint);
189
var
constraint = Assert.Single(selector.ActionConstraints, c => c is HttpMethodActionConstraint);
207
var
constraint = Assert.Single(selector.ActionConstraints, c => c is HttpMethodActionConstraint);
Microsoft.AspNetCore.Mvc.RazorPages.Test (6)
ApplicationModels\CompiledPageActionDescriptorBuilderTest.cs (5)
22
ActionConstraints = new List<
IActionConstraintMetadata
>(),
51
ActionConstraints = new List<
IActionConstraintMetadata
>(),
102
ActionConstraints = new List<
IActionConstraintMetadata
>(),
144
ActionConstraints = new List<
IActionConstraintMetadata
>(),
405
ActionConstraints = new List<
IActionConstraintMetadata
>(),
Infrastructure\PageActionDescriptorProviderTest.cs (1)
198
var
actual = Assert.Single(descriptor.ActionConstraints);
Microsoft.AspNetCore.Mvc.Test (19)
Routing\ActionConstraintMatcherPolicyTest.cs (19)
46
ActionConstraints = new List<
IActionConstraintMetadata
>()
79
ActionConstraints = new List<
IActionConstraintMetadata
>()
87
ActionConstraints = new List<
IActionConstraintMetadata
>()
114
ActionConstraints = new List<
IActionConstraintMetadata
>()
123
ActionConstraints = new List<
IActionConstraintMetadata
>()
151
ActionConstraints = new List<
IActionConstraintMetadata
>()
159
ActionConstraints = new List<
IActionConstraintMetadata
>()
185
ActionConstraints = new List<
IActionConstraintMetadata
>()
195
ActionConstraints = new List<
IActionConstraintMetadata
>()
224
ActionConstraints = new List<
IActionConstraintMetadata
>()
232
ActionConstraints = new List<
IActionConstraintMetadata
>()
260
ActionConstraints = new List<
IActionConstraintMetadata
>()
270
ActionConstraints = new List<
IActionConstraintMetadata
>()
299
ActionConstraints = new List<
IActionConstraintMetadata
>()
309
ActionConstraints = new List<
IActionConstraintMetadata
>()
343
ActionConstraints = new List<
IActionConstraintMetadata
>()
383
ActionConstraints = new List<
IActionConstraintMetadata
>()
390
ActionConstraints = new List<
IActionConstraintMetadata
>()
419
ActionConstraints = new List<
IActionConstraintMetadata
>()