1 write to ParameterKind
Microsoft.AspNetCore.Routing (1)
Patterns\RoutePatternParameterPart.cs (1)
41
ParameterKind
= parameterKind;
10 references to ParameterKind
Microsoft.AspNetCore.Routing (4)
Patterns\DefaultRoutePatternTransformer.cs (1)
228
var updatedParameter = RoutePatternFactory.ParameterPart(parameter.Name, @default: null, parameter.
ParameterKind
, parameter.ParameterPolicies);
Patterns\RoutePatternFactory.cs (1)
637
parameter.
ParameterKind
,
Patterns\RoutePatternParameterPart.cs (2)
65
public bool IsCatchAll =>
ParameterKind
== RoutePatternParameterKind.CatchAll;
71
public bool IsOptional =>
ParameterKind
== RoutePatternParameterKind.Optional;
Microsoft.AspNetCore.Routing.Tests (6)
Patterns\InlineRouteParameterParserTest.cs (4)
946
Assert.Equal(RoutePatternParameterKind.CatchAll, parameterPart.
ParameterKind
);
961
Assert.Equal(RoutePatternParameterKind.CatchAll, parameterPart.
ParameterKind
);
977
Assert.Equal(RoutePatternParameterKind.CatchAll, parameterPart.
ParameterKind
);
995
Assert.Equal(RoutePatternParameterKind.CatchAll, parameterPart.
ParameterKind
);
Patterns\RoutePatternParserTest.cs (2)
731
x.
ParameterKind
== y.
ParameterKind
&&