24 references to GetParameter
Microsoft.AspNetCore.Mvc.ApiExplorer (4)
EndpointMetadataApiDescriptionProvider.cs (4)
204
var name = pattern.
GetParameter
(parameterName)?.Name ?? parameterName;
221
if (pattern.
GetParameter
(parameter.Name) is not RoutePatternParameterPart parameterPart)
258
var name = pattern.
GetParameter
(parameterName)?.Name ?? parameterName;
294
if (parameter.Name is { } name && pattern.
GetParameter
(name) is { } routeParam)
Microsoft.AspNetCore.Mvc.Core (2)
Routing\ActionEndpointFactory.cs (2)
192
if (route.Pattern.
GetParameter
(key) != null)
283
var parameter = attributeRoutePattern.
GetParameter
(routeValue.Key);
Microsoft.AspNetCore.OpenApi (2)
Services\OpenApiGenerator.cs (2)
385
var name = attributeName ?? (pattern.
GetParameter
(parameter.Name) is { } routeParameter ? routeParameter.Name : parameter.Name);
437
if (parameter.Name is { } name && pattern.
GetParameter
(name) is not null)
Microsoft.AspNetCore.Routing (9)
DefaultLinkParser.cs (1)
95
var parameter = endpoint.RoutePattern.
GetParameter
(kvp.Key);
Matching\DfaMatcherBuilder.cs (1)
813
var parameter = routeEndpoint.RoutePattern.
GetParameter
(kvp.Key); // may be null, that's ok
Patterns\DefaultRoutePatternTransformer.cs (4)
56
if (original.
GetParameter
(kvp.Key) != null)
83
if (original.
GetParameter
(kvp.Key) == null &&
98
else if ((parameter = original.
GetParameter
(kvp.Key)) != null)
159
var parameter = original.
GetParameter
(kvp.Key);
Template\DefaultTemplateBinderFactory.cs (1)
45
var parameter = pattern.
GetParameter
(parameterName);
Template\TemplateBinder.cs (2)
219
var hasParameter = _pattern.
GetParameter
(key) != null;
711
var parameter = _pattern.
GetParameter
(kvp.Key);
Microsoft.AspNetCore.Routing.Tests (7)
Patterns\DefaultRoutePatternTransformerTest.cs (2)
204
Assert.Null(actual.
GetParameter
("controller").Default);
206
Assert.Null(actual.
GetParameter
("action").Default);
Patterns\RoutePatternFactoryTest.cs (5)
30
Assert.Equal("15", actual.
GetParameter
("a").Default);
31
Assert.Equal(17, actual.
GetParameter
("b").Default);
32
Assert.Equal("19", actual.
GetParameter
("c").Default);
155
actual.
GetParameter
("a").ParameterPolicies,
159
actual.
GetParameter
("b").ParameterPolicies,