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