150 references to RouteDirection
Microsoft.AspNetCore.Mvc.Core (1)
Routing\KnownRouteValueConstraint.cs (1)
39
RouteDirection
routeDirection)
Microsoft.AspNetCore.Mvc.Core.Test (47)
Builder\MvcAreaRouteBuilderExtensionsTest.cs (1)
255
routeDirection:
RouteDirection
.UrlGeneration);
Routing\KnownRouteValueConstraintTests.cs (46)
51
var match = knownRouteValueConstraint.Match(httpContext: null, route: null, "area", values,
RouteDirection
.IncomingRequest);
58
[InlineData("area",
RouteDirection
.IncomingRequest)]
59
[InlineData("controller",
RouteDirection
.IncomingRequest)]
60
[InlineData("action",
RouteDirection
.IncomingRequest)]
61
[InlineData("randomKey",
RouteDirection
.IncomingRequest)]
62
[InlineData("area",
RouteDirection
.UrlGeneration)]
63
[InlineData("controller",
RouteDirection
.UrlGeneration)]
64
[InlineData("action",
RouteDirection
.UrlGeneration)]
65
[InlineData("randomKey",
RouteDirection
.UrlGeneration)]
66
public void RouteKey_DoesNotExist_MatchFails(string keyName,
RouteDirection
direction)
83
[InlineData("area",
RouteDirection
.IncomingRequest)]
84
[InlineData("controller",
RouteDirection
.IncomingRequest)]
85
[InlineData("action",
RouteDirection
.IncomingRequest)]
86
[InlineData("randomKey",
RouteDirection
.IncomingRequest)]
87
[InlineData("area",
RouteDirection
.UrlGeneration)]
88
[InlineData("controller",
RouteDirection
.UrlGeneration)]
89
[InlineData("action",
RouteDirection
.UrlGeneration)]
90
[InlineData("randomKey",
RouteDirection
.UrlGeneration)]
91
public void RouteKey_Exists_MatchSucceeds(string keyName,
RouteDirection
direction)
119
[InlineData("area",
RouteDirection
.IncomingRequest)]
120
[InlineData("controller",
RouteDirection
.IncomingRequest)]
121
[InlineData("action",
RouteDirection
.IncomingRequest)]
122
[InlineData("randomKey",
RouteDirection
.IncomingRequest)]
123
[InlineData("area",
RouteDirection
.UrlGeneration)]
124
[InlineData("controller",
RouteDirection
.UrlGeneration)]
125
[InlineData("action",
RouteDirection
.UrlGeneration)]
126
[InlineData("randomKey",
RouteDirection
.UrlGeneration)]
127
public void RouteValue_DoesNotExists_MatchFails(string keyName,
RouteDirection
direction)
157
[InlineData(
RouteDirection
.IncomingRequest)]
158
[InlineData(
RouteDirection
.UrlGeneration)]
159
public void RouteValue_IsNotAString_MatchFails(
RouteDirection
direction)
182
[InlineData(
RouteDirection
.IncomingRequest)]
183
[InlineData(
RouteDirection
.UrlGeneration)]
184
public void ActionDescriptorCollection_SettingNullValue_Throws(
RouteDirection
direction)
205
[InlineData("area",
RouteDirection
.IncomingRequest)]
206
[InlineData("controller",
RouteDirection
.IncomingRequest)]
207
[InlineData("action",
RouteDirection
.IncomingRequest)]
208
[InlineData("randomKey",
RouteDirection
.IncomingRequest)]
209
[InlineData("area",
RouteDirection
.UrlGeneration)]
210
[InlineData("controller",
RouteDirection
.UrlGeneration)]
211
[InlineData("action",
RouteDirection
.UrlGeneration)]
212
[InlineData("randomKey",
RouteDirection
.UrlGeneration)]
213
public void ServiceInjected_RouteKey_Exists_MatchSucceeds(string keyName,
RouteDirection
direction)
241
[InlineData(
RouteDirection
.IncomingRequest)]
242
[InlineData(
RouteDirection
.UrlGeneration)]
244
public void ServiceInjected_RouteKey_Exists_UsesInvariantCulture(
RouteDirection
direction)
Microsoft.AspNetCore.Routing (36)
Constraints\BoolRouteConstraint.cs (1)
30
RouteDirection
routeDirection)
Constraints\CompositeRouteConstraint.cs (1)
44
RouteDirection
routeDirection)
Constraints\DateTimeRouteConstraint.cs (1)
36
RouteDirection
routeDirection)
Constraints\DecimalRouteConstraint.cs (1)
30
RouteDirection
routeDirection)
Constraints\DoubleRouteConstraint.cs (1)
30
RouteDirection
routeDirection)
Constraints\FileNameRouteConstraint.cs (1)
101
RouteDirection
routeDirection)
Constraints\FloatRouteConstraint.cs (1)
30
RouteDirection
routeDirection)
Constraints\GuidRouteConstraint.cs (1)
32
RouteDirection
routeDirection)
Constraints\HttpMethodRouteConstraint.cs (3)
38
RouteDirection
routeDirection)
45
case
RouteDirection
.IncomingRequest:
51
case
RouteDirection
.UrlGeneration:
Constraints\IntRouteConstraint.cs (1)
30
RouteDirection
routeDirection)
Constraints\LengthRouteConstraint.cs (1)
86
RouteDirection
routeDirection)
Constraints\LongRouteConstraint.cs (1)
30
RouteDirection
routeDirection)
Constraints\MaxLengthRouteConstraint.cs (1)
50
RouteDirection
routeDirection)
Constraints\MaxRouteConstraint.cs (1)
44
RouteDirection
routeDirection)
Constraints\MinLengthRouteConstraint.cs (1)
50
RouteDirection
routeDirection)
Constraints\MinRouteConstraint.cs (1)
44
RouteDirection
routeDirection)
Constraints\NonFileNameRouteConstraint.cs (1)
97
RouteDirection
routeDirection)
Constraints\NullRouteConstraint.cs (1)
21
public bool Match(HttpContext? httpContext, IRouter? route, string routeKey, RouteValueDictionary values,
RouteDirection
routeDirection)
Constraints\OptionalRouteConstraint.cs (1)
44
RouteDirection
routeDirection)
Constraints\RangeRouteConstraint.cs (1)
58
RouteDirection
routeDirection)
Constraints\RegexErrorStubRouteConstraint.cs (1)
24
bool IRouteConstraint.Match(HttpContext? httpContext, IRouter? route, string routeKey, RouteValueDictionary values,
RouteDirection
routeDirection)
Constraints\RegexRouteConstraint.cs (1)
85
RouteDirection
routeDirection)
Constraints\RequiredRouteConstraint.cs (1)
24
RouteDirection
routeDirection)
Constraints\StringRouteConstraint.cs (1)
29
public bool Match(HttpContext? httpContext, IRouter? route, string routeKey, RouteValueDictionary values,
RouteDirection
routeDirection)
DefaultLinkParser.cs (1)
135
if (!constraint.Match(httpContext: null, NullRouter.Instance, kvp.Key, values,
RouteDirection
.IncomingRequest))
Matching\DfaMatcher.cs (1)
306
if (!constraint.Value.Match(httpContext, NullRouter.Instance, constraint.Key, values,
RouteDirection
.IncomingRequest))
Patterns\DefaultRoutePatternTransformer.cs (1)
206
if (!constraint.Match(httpContext: null, NullRouter.Instance, key, requiredValues,
RouteDirection
.IncomingRequest))
RouteBase.cs (2)
133
RouteDirection
.IncomingRequest,
161
RouteDirection
.UrlGeneration,
RouteConstraintMatcher.cs (2)
41
RouteDirection
routeDirection,
71
if (routeDirection.Equals(
RouteDirection
.IncomingRequest))
Template\TemplateBinder.cs (1)
438
if (!constraint.Match(httpContext, NullRouter.Instance, parameterName, combinedValues,
RouteDirection
.UrlGeneration))
Tree\TreeRouter.cs (2)
205
RouteDirection
.IncomingRequest,
324
RouteDirection
.UrlGeneration,
Microsoft.AspNetCore.Routing.Abstractions (1)
IRouteConstraint.cs (1)
40
RouteDirection
routeDirection);
Microsoft.AspNetCore.Routing.Tests (62)
ConstraintMatcherTest.cs (10)
35
routeDirection:
RouteDirection
.UrlGeneration,
97
routeDirection:
RouteDirection
.IncomingRequest,
117
routeDirection:
RouteDirection
.IncomingRequest,
137
routeDirection:
RouteDirection
.IncomingRequest,
157
routeDirection:
RouteDirection
.IncomingRequest,
177
routeDirection:
RouteDirection
.IncomingRequest,
189
routeDirection:
RouteDirection
.IncomingRequest,
207
routeDirection:
RouteDirection
.IncomingRequest,
226
RouteDirection
routeDirection)
244
RouteDirection
routeDirection)
Constraints\CompositeRouteConstraintTests.cs (1)
41
It.IsAny<
RouteDirection
>());
Constraints\ConstraintsTestHelper.cs (2)
12
var
routeDirection =
RouteDirection
.IncomingRequest;
Constraints\FileNameRouteConstraintTest.cs (3)
38
var result = constraint.Match(httpContext: null, route: null, "path", values,
RouteDirection
.IncomingRequest);
76
var result = constraint.Match(httpContext: null, route: null, "path", values,
RouteDirection
.IncomingRequest);
91
var result = constraint.Match(httpContext: null, route: null, "path", values,
RouteDirection
.IncomingRequest);
Constraints\HttpMethodRouteConstraintTests.cs (4)
26
var result = constraint.Match(httpContext, route, "httpMethod", values,
RouteDirection
.IncomingRequest);
47
var result = constraint.Match(httpContext, route, "httpMethod", values,
RouteDirection
.IncomingRequest);
67
var result = constraint.Match(httpContext, route, "httpMethod", values,
RouteDirection
.UrlGeneration);
87
var result = constraint.Match(httpContext, route, "httpMethod", values,
RouteDirection
.UrlGeneration);
Constraints\NonFIleNameRouteConstraintTest.cs (3)
19
var result = constraint.Match(httpContext: null, route: null, "path", values,
RouteDirection
.IncomingRequest);
36
var result = constraint.Match(httpContext: null, route: null, "path", values,
RouteDirection
.IncomingRequest);
51
var result = constraint.Match(httpContext: null, route: null, "path", values,
RouteDirection
.IncomingRequest);
Constraints\RegexInlineRouteConstraintTests.cs (3)
35
routeDirection:
RouteDirection
.IncomingRequest);
54
routeDirection:
RouteDirection
.IncomingRequest);
84
routeDirection:
RouteDirection
.IncomingRequest);
Constraints\RegexRouteConstraintTests.cs (5)
39
routeDirection:
RouteDirection
.IncomingRequest);
58
routeDirection:
RouteDirection
.IncomingRequest);
77
routeDirection:
RouteDirection
.IncomingRequest);
96
routeDirection:
RouteDirection
.IncomingRequest);
126
routeDirection:
RouteDirection
.IncomingRequest);
Constraints\RequiredRouteConstraintTests.cs (12)
13
[InlineData(
RouteDirection
.IncomingRequest)]
14
[InlineData(
RouteDirection
.UrlGeneration)]
15
public void RequiredRouteConstraint_NoValue(
RouteDirection
direction)
33
[InlineData(
RouteDirection
.IncomingRequest)]
34
[InlineData(
RouteDirection
.UrlGeneration)]
35
public void RequiredRouteConstraint_Null(
RouteDirection
direction)
53
[InlineData(
RouteDirection
.IncomingRequest)]
54
[InlineData(
RouteDirection
.UrlGeneration)]
55
public void RequiredRouteConstraint_EmptyString(
RouteDirection
direction)
73
[InlineData(
RouteDirection
.IncomingRequest)]
74
[InlineData(
RouteDirection
.UrlGeneration)]
75
public void RequiredRouteConstraint_WithValue(
RouteDirection
direction)
Constraints\StringRouteConstraintTest.cs (7)
25
routeDirection:
RouteDirection
.IncomingRequest);
45
routeDirection:
RouteDirection
.UrlGeneration);
65
routeDirection:
RouteDirection
.IncomingRequest);
85
routeDirection:
RouteDirection
.UrlGeneration);
105
routeDirection:
RouteDirection
.IncomingRequest);
125
routeDirection:
RouteDirection
.UrlGeneration);
149
routeDirection:
RouteDirection
.IncomingRequest);
DefaultInlineConstraintResolverTest.cs (2)
388
RouteDirection
routeDirection)
406
RouteDirection
routeDirection)
DefaultLinkGeneratorProcessTemplateTest.cs (1)
756
It.IsAny<
RouteDirection
>()))
DefaultLinkGeneratorTest.cs (1)
556
public bool Match(HttpContext httpContext, IRouter route, string routeKey, RouteValueDictionary values,
RouteDirection
routeDirection)
DefaultParameterPolicyFactoryTest.cs (2)
426
public
RouteDirection
RouteDirection { get; private set; }
438
RouteDirection
routeDirection)
InlineRouteParameterParserTests.cs (1)
981
RouteDirection
routeDirection)
RouteConstraintBuilderTest.cs (1)
174
routeDirection:
RouteDirection
.IncomingRequest));
RouteOptionsTests.cs (1)
72
RouteDirection
routeDirection)
RouteTest.cs (1)
963
It.IsAny<
RouteDirection
>()))
RoutingServiceCollectionExtensionsTests.cs (1)
56
public bool Match(HttpContext httpContext, IRouter route, string routeKey, RouteValueDictionary values,
RouteDirection
routeDirection)
TestObjects\CapturingConstraint.cs (1)
17
RouteDirection
routeDirection)
Microsoft.AspNetCore.StaticAssets (1)
Development\StaticAssetDevelopmentRuntimeHandler.cs (1)
312
public bool Match(HttpContext? httpContext, IRouter? route, string routeKey, RouteValueDictionary values,
RouteDirection
routeDirection)
Mvc.RoutingWebSite (1)
QueryStringConstraint.cs (1)
8
public bool Match(HttpContext httpContext, IRouter route, string routeKey, RouteValueDictionary values,
RouteDirection
routeDirection)
RoutingWebSite (1)
EndsWithStringRouteConstraint.cs (1)
17
public bool Match(HttpContext httpContext, IRouter route, string routeKey, RouteValueDictionary values,
RouteDirection
routeDirection)