3 instantiations of RoutePatternParameterPolicyReference
Microsoft.AspNetCore.Routing (3)
Patterns\RoutePatternFactory.cs (2)
1142return new RoutePatternParameterPolicyReference(parameterPolicy); 1147return new RoutePatternParameterPolicyReference(parameterPolicy);
Template\TemplatePart.cs (1)
173var constraints = InlineConstraints.Select(c => new RoutePatternParameterPolicyReference(c.Constraint));
109 references to RoutePatternParameterPolicyReference
Microsoft.AspNetCore.Mvc.ApiExplorer (1)
EndpointMetadataApiDescriptionProvider.cs (1)
230foreach (var parameterPolicyReference in parameterPolicyReferences)
Microsoft.AspNetCore.Mvc.Core (1)
Routing\RoutePatternWriter.cs (1)
46foreach (var item in parameterPart.ParameterPolicies)
Microsoft.AspNetCore.Routing (58)
Matching\DfaMatcherBuilder.cs (5)
404var reference = parameterPolicyReferences[j]; 425private void AddParentsWithMatchingLiteralConstraints(List<DfaNode> nextParents, DfaNode parent, RoutePatternParameterPart parameterPart, IReadOnlyList<RoutePatternParameterPolicyReference> parameterPolicyReferences) 435var reference = parameterPolicyReferences[i]; 479var reference = parameterPolicyReferences[k]; 817var reference = parameterPolicyReferences[i];
ParameterPolicyFactory.cs (1)
36public IParameterPolicy Create(RoutePatternParameterPart? parameter, RoutePatternParameterPolicyReference reference)
Patterns\RouteParameterParser.cs (4)
22return new RoutePatternParameterPart(string.Empty, null, RoutePatternParameterKind.Standard, Array.Empty<RoutePatternParameterPolicyReference>()); 101var constraints = new ArrayBuilder<RoutePatternParameterPolicyReference>(0); 252public readonly RoutePatternParameterPolicyReference[] ParameterPolicies; 254public ParameterPolicyParseResults(int currentIndex, RoutePatternParameterPolicyReference[] parameterPolicies)
Patterns\RoutePattern.cs (2)
43IReadOnlyDictionary<string, IReadOnlyList<RoutePatternParameterPolicyReference>> parameterPolicies, 75public IReadOnlyDictionary<string, IReadOnlyList<RoutePatternParameterPolicyReference>> ParameterPolicies { get; }
Patterns\RoutePatternFactory.cs (38)
36private static readonly IReadOnlyDictionary<string, IReadOnlyList<RoutePatternParameterPolicyReference>> EmptyPoliciesDictionary = 37new ReadOnlyDictionary<string, IReadOnlyList<RoutePatternParameterPolicyReference>>(new Dictionary<string, IReadOnlyList<RoutePatternParameterPolicyReference>>()); 443Dictionary<string, List<RoutePatternParameterPolicyReference>>? parameterPolicyReferences, 537? parameterPolicyReferences.ToDictionary(kvp => kvp.Key, kvp => (IReadOnlyList<RoutePatternParameterPolicyReference>)kvp.Value.ToArray()) 608List<RoutePatternParameterPolicyReference>? parameterConstraints = null; 614parameterPolicyReferences = new Dictionary<string, List<RoutePatternParameterPolicyReference>>(StringComparer.OrdinalIgnoreCase); 617parameterConstraints = new List<RoutePatternParameterPolicyReference>(parameter.ParameterPolicies.Count); 638parameterConstraints?.ToArray() ?? Array.Empty<RoutePatternParameterPolicyReference>(), 648private static Dictionary<string, List<RoutePatternParameterPolicyReference>>? CreateRoutePatternPolicyReferences(RouteValueDictionary? parameterPolicies) 650Dictionary<string, List<RoutePatternParameterPolicyReference>>? updatedParameterPolicies = null; 653updatedParameterPolicies = new Dictionary<string, List<RoutePatternParameterPolicyReference>>(parameterPolicies.Count, StringComparer.OrdinalIgnoreCase); 657var policyReferences = new List<RoutePatternParameterPolicyReference>(); 782parameterPolicies: Array.Empty<RoutePatternParameterPolicyReference>()); 805parameterPolicies: Array.Empty<RoutePatternParameterPolicyReference>()); 837parameterPolicies: Array.Empty<RoutePatternParameterPolicyReference>()); 853IEnumerable<RoutePatternParameterPolicyReference> parameterPolicies) 889params RoutePatternParameterPolicyReference[] parameterPolicies) 909parameterPolicies: (RoutePatternParameterPolicyReference[])parameterPolicies.Clone()); 916RoutePatternParameterPolicyReference[] parameterPolicies) 926RoutePatternParameterPolicyReference[] parameterPolicies, 938/// Creates a <see cref="RoutePatternParameterPolicyReference"/> from the provided contraint. 945/// <returns>The <see cref="RoutePatternParameterPolicyReference"/>.</returns> 946public static RoutePatternParameterPolicyReference Constraint(object constraint) 966/// Creates a <see cref="RoutePatternParameterPolicyReference"/> from the provided constraint. 971/// <returns>The <see cref="RoutePatternParameterPolicyReference"/>.</returns> 972public static RoutePatternParameterPolicyReference Constraint(IRouteConstraint constraint) 981/// Creates a <see cref="RoutePatternParameterPolicyReference"/> from the provided constraint. 986/// <returns>The <see cref="RoutePatternParameterPolicyReference"/>.</returns> 988public static RoutePatternParameterPolicyReference Constraint(string constraint) 996/// Creates a <see cref="RoutePatternParameterPolicyReference"/> from the provided object. 1001/// <returns>The <see cref="RoutePatternParameterPolicyReference"/>.</returns> 1002public static RoutePatternParameterPolicyReference ParameterPolicy(IParameterPolicy parameterPolicy) 1011/// Creates a <see cref="RoutePatternParameterPolicyReference"/> from the provided object. 1016/// <returns>The <see cref="RoutePatternParameterPolicyReference"/>.</returns> 1018public static RoutePatternParameterPolicyReference ParameterPolicy(string parameterPolicy) 1140private static RoutePatternParameterPolicyReference ParameterPolicyCore(string parameterPolicy) 1145private static RoutePatternParameterPolicyReference ParameterPolicyCore(IParameterPolicy parameterPolicy)
Patterns\RoutePatternParameterPart.cs (4)
24RoutePatternParameterPolicyReference[] parameterPolicies) 33RoutePatternParameterPolicyReference[] parameterPolicies, 49public IReadOnlyList<RoutePatternParameterPolicyReference> ParameterPolicies { get; } 99foreach (var constraint in ParameterPolicies)
Patterns\RoutePatternParameterPolicyReference.cs (1)
10/// of <see cref="RoutePatternParameterPolicyReference"/> are immutable.
Template\InlineConstraint.cs (3)
29/// Creates a new <see cref="InlineConstraint"/> instance given a <see cref="RoutePatternParameterPolicyReference"/>. 31/// <param name="other">A <see cref="RoutePatternParameterPolicyReference"/> instance.</param> 32public InlineConstraint(RoutePatternParameterPolicyReference other)
Microsoft.AspNetCore.Routing.Tests (49)
Patterns\InlineRouteParameterParserTest.cs (45)
80var constraint = Assert.Single(templatePart.ParameterPolicies); 94var constraint = Assert.Single(templatePart.ParameterPolicies); 108var constraint = Assert.Single(templatePart.ParameterPolicies); 123var constraint = Assert.Single(templatePart.ParameterPolicies); 138var constraint = Assert.Single(templatePart.ParameterPolicies); 152var constraint = Assert.Single(templatePart.ParameterPolicies); 168var constraint = Assert.Single(templatePart.ParameterPolicies); 261var constraint = Assert.Single(templatePart.ParameterPolicies); 324var constraint = Assert.Single(templatePart.ParameterPolicies); 339var constraint = Assert.Single(templatePart.ParameterPolicies); 352var constraint = Assert.Single(templatePart.ParameterPolicies); 367var constraint = Assert.Single(templatePart.ParameterPolicies); 380var constraint = Assert.Single(templatePart.ParameterPolicies); 395var constraint = Assert.Single(templatePart.ParameterPolicies); 408var constraint = Assert.Single(templatePart.ParameterPolicies); 423var constraint = Assert.Single(templatePart.ParameterPolicies); 466var constraint = Assert.Single(templatePart.ParameterPolicies); 479var constraint = Assert.Single(templatePart.ParameterPolicies); 494var constraint = Assert.Single(templatePart.ParameterPolicies); 510var constraint = Assert.Single(templatePart.ParameterPolicies); 524var constraint = Assert.Single(templatePart.ParameterPolicies); 549var constraint = Assert.Single(templatePart.ParameterPolicies); 563var constraint = Assert.Single(templatePart.ParameterPolicies); 621var constraint = Assert.Single(templatePart.ParameterPolicies); 634var constraint = Assert.Single(templatePart.ParameterPolicies); 647var constraint = Assert.Single(templatePart.ParameterPolicies); 662var constraint = Assert.Single(templatePart.ParameterPolicies); 675var constraint = Assert.Single(templatePart.ParameterPolicies); 688var constraint = Assert.Single(templatePart.ParameterPolicies); 701var constraint = Assert.Single(templatePart.ParameterPolicies); 745var constraint = Assert.Single(templatePart.ParameterPolicies); 760var constraint = Assert.Single(templatePart.ParameterPolicies); 775var constraint = Assert.Single(templatePart.ParameterPolicies); 790var constraint = Assert.Single(templatePart.ParameterPolicies); 805var constraint = Assert.Single(templatePart.ParameterPolicies); 820var constraint = Assert.Single(templatePart.ParameterPolicies); 835var constraint = Assert.Single(templatePart.ParameterPolicies); 866var constraint = Assert.Single(templatePart.ParameterPolicies); 881var constraint = Assert.Single(templatePart.ParameterPolicies); 896var constraint = Assert.Single(templatePart.ParameterPolicies); 911var constraint = Assert.Single(templatePart.ParameterPolicies); 978var constraintReference = Assert.Single(parameterPart.ParameterPolicies); 996var constraintReference = Assert.Single(parameterPart.ParameterPolicies); 1042var constraintReference = Assert.Single(parameterPart.ParameterPolicies); 1059var constraintReference = Assert.Single(parameterPart.ParameterPolicies);
Patterns\RoutePatternParserTest.cs (4)
640IEqualityComparer<RoutePatternParameterPolicyReference> 736public bool Equals(RoutePatternParameterPolicyReference x, RoutePatternParameterPolicyReference y) 753public int GetHashCode(RoutePatternParameterPolicyReference obj)