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