992 instantiations of RouteValueDictionary
DeveloperExceptionPageSample (1)
Startup.cs (1)
19context.Request.RouteValues = new RouteValueDictionary(new
Microsoft.AspNetCore.Grpc.JsonTranscoding.Tests (8)
JsonTranscodingRouteAdapterTests.cs (8)
39httpContext.Request.RouteValues = new RouteValueDictionary 139httpContext.Request.RouteValues = new RouteValueDictionary 158httpContext.Request.RouteValues = new RouteValueDictionary 177httpContext.Request.RouteValues = new RouteValueDictionary 196httpContext.Request.RouteValues = new RouteValueDictionary 215httpContext.Request.RouteValues = new RouteValueDictionary 252httpContext.Request.RouteValues = new RouteValueDictionary 271httpContext.Request.RouteValues = new RouteValueDictionary
Microsoft.AspNetCore.Http (1)
Features\RouteValuesFeature.cs (1)
26_routeValues = new RouteValueDictionary();
Microsoft.AspNetCore.Http.Abstractions (1)
Routing\RouteValueDictionary.cs (1)
95return new RouteValueDictionary()
Microsoft.AspNetCore.Http.Abstractions.Tests (119)
RouteValueDictionaryTests.cs (119)
15var dict = new RouteValueDictionary(); 28var dict = new RouteValueDictionary(values: (object?)null); 40var other = new RouteValueDictionary() 46var dict = new RouteValueDictionary(other); 62var other = new RouteValueDictionary(new { key = "value" }); 65var dict = new RouteValueDictionary(other); 119var dict = new RouteValueDictionary(values); 141var dict = new RouteValueDictionary(values); 164() => new RouteValueDictionary(values), 181() => new RouteValueDictionary(values), 193var dict = new RouteValueDictionary(obj); 210var dict = new RouteValueDictionary(obj); 236var dict = new RouteValueDictionary(obj); 257var dict = new RouteValueDictionary(obj); 272var dict = new RouteValueDictionary(obj); 287var dict = new RouteValueDictionary(obj); 315var dict = new RouteValueDictionary(obj); 332var dict = new RouteValueDictionary(obj); 354var dictionary = new RouteValueDictionary(obj); 368var dict = new RouteValueDictionary(obj); 386var dict = new RouteValueDictionary(obj); 404var dict = new RouteValueDictionary(obj); 418var dict = new RouteValueDictionary(); 429var dict = new RouteValueDictionary(); 442var dict = new RouteValueDictionary(); 455var dict = new RouteValueDictionary(); 468var dict = new RouteValueDictionary(new { age = 30 }); 482var dict = new RouteValueDictionary(new { key = "value" }); 496var dict = new RouteValueDictionary(new { key = "value" }); 510var dict = new RouteValueDictionary() 527var dict = new RouteValueDictionary() 544var dict = new RouteValueDictionary() 561var dict = new RouteValueDictionary(); 574var dict = new RouteValueDictionary(); 588var dict = new RouteValueDictionary(new { age = 30 }); 605var dict = new RouteValueDictionary(new { key = "value" }); 619var dict = new RouteValueDictionary(new { key = "value" }); 633var dict = new RouteValueDictionary() 653var dict = new RouteValueDictionary() 670var dict = new RouteValueDictionary() 687var dict = new RouteValueDictionary(); 700var dict = new RouteValueDictionary(new { key = "value", }); 714var dict = new RouteValueDictionary() 731var dict = new RouteValueDictionary(); 745var dict = new RouteValueDictionary(new { key = "value", }); 759var dict = new RouteValueDictionary() 776var dict = new RouteValueDictionary(); 790var dict = new RouteValueDictionary(new { key = "value", }); 804var dict = new RouteValueDictionary() 821var dict = new RouteValueDictionary(); 835var dict = new RouteValueDictionary(); 848var dict = new RouteValueDictionary(new { age = 30 }); 873var dict = new RouteValueDictionary() 893var dict = new RouteValueDictionary() 914var dict = new RouteValueDictionary() 935var dict = new RouteValueDictionary() 955var dict = new RouteValueDictionary(); 968var dict = new RouteValueDictionary(new { }); 983var dict = new RouteValueDictionary(new { key = "value" }); 998var dict = new RouteValueDictionary() 1016var dict = new RouteValueDictionary() 1035var dict = new RouteValueDictionary() 1054var dict = new RouteValueDictionary() 1074var dict = new RouteValueDictionary() 1093var dict = new RouteValueDictionary(new { key = "value" }); 1113var dict = new RouteValueDictionary(new { key = "value" }); 1133var dict = new RouteValueDictionary(new { key = "value" }); 1154var dict = new RouteValueDictionary(new { key = "value" }); 1174var dict = new RouteValueDictionary(); 1187var dict = new RouteValueDictionary(); 1200var dict = new RouteValueDictionary(new { key = "value" }); 1215var dict = new RouteValueDictionary(new { key = "value" }); 1230var dict = new RouteValueDictionary(new { key = "value" }); 1245var dict = new RouteValueDictionary() 1262var dict = new RouteValueDictionary() 1279var dict = new RouteValueDictionary() 1296var dict = new RouteValueDictionary() 1321var dict = new RouteValueDictionary() 1341var dict = new RouteValueDictionary() 1361var dict = new RouteValueDictionary() 1382var dict = new RouteValueDictionary() 1402var dict = new RouteValueDictionary(); 1415var dict = new RouteValueDictionary(); 1428var dict = new RouteValueDictionary(new { }); 1443var dict = new RouteValueDictionary(new { key = "value" }); 1458var dict = new RouteValueDictionary(new { key = "value" }); 1473var dict = new RouteValueDictionary(new { key = "value" }); 1488var dict = new RouteValueDictionary() 1506var dict = new RouteValueDictionary() 1524var dict = new RouteValueDictionary() 1542var dict = new RouteValueDictionary(); 1556var dict = new RouteValueDictionary(); 1570var dict = new RouteValueDictionary(new { }); 1586var dict = new RouteValueDictionary(new { key = "value" }); 1603var dict = new RouteValueDictionary(new { key = value }); 1620var dict = new RouteValueDictionary(new { key = value }); 1636var dict = new RouteValueDictionary() 1656var dict = new RouteValueDictionary() 1676var dict = new RouteValueDictionary() 1696var dict = new RouteValueDictionary() 1721var dict = new RouteValueDictionary() 1746var dict = new RouteValueDictionary() 1770var dict = new RouteValueDictionary(); 1783var dict = new RouteValueDictionary(new { key = "value", }); 1803var dict = new RouteValueDictionary(new { key = "value", }); 1821var dict = new RouteValueDictionary(); 1840var dict = new RouteValueDictionary() 1862var dict = new RouteValueDictionary() 1891var dict = new RouteValueDictionary() 1913var dict = new RouteValueDictionary(); 1927var dict = new RouteValueDictionary(); 1941var dict = new RouteValueDictionary(new { key = "value" }); 1956var dict = new RouteValueDictionary(new { key = "value" }); 1971var dict = new RouteValueDictionary(new { key = "value" }); 1986var dict = new RouteValueDictionary() 2004var dict = new RouteValueDictionary() 2022var dict = new RouteValueDictionary() 2040var dict = new RouteValueDictionary(); 2064var dict = new RouteValueDictionary();
Microsoft.AspNetCore.Http.Extensions.Tests (1)
RequestDelegateFactoryTests.cs (1)
255httpContext.Request.RouteValues = new()
Microsoft.AspNetCore.Http.Microbenchmarks (19)
RouteValueDictionaryBenchmark.cs (19)
18_arrayValues = new RouteValueDictionary() 24_arrayValuesEmpty = new RouteValueDictionary(); 25_propertyValues = new RouteValueDictionary(new { action = "Index", controller = "Home", id = "17" }); 31new RouteValueDictionary(_arrayValuesEmpty); 37return new RouteValueDictionary(_arrayValues); 43var dictionary = new RouteValueDictionary 53var dictionary = new RouteValueDictionary 89var propertyValues = new RouteValueDictionary(new { action = "Index", controller = "Home", id = "17", area = "root" }); 96var propertyValues = new RouteValueDictionary(new { action = "Index", controller = "Home", id = "17", area = "root" }); 103var propertyValues = new RouteValueDictionary(new { action = "Index", controller = "Home", id = "17" }); 110var propertyValues = new RouteValueDictionary(new { action = "Index", controller = "Home", id = "17" }); 117var arrayValues = new RouteValueDictionary 130var arrayValues = new RouteValueDictionary 143var arrayValues = new RouteValueDictionary 155var arrayValues = new RouteValueDictionary 167var arrayValues = new RouteValueDictionary() 183var propertyValues = new RouteValueDictionary(new { action = "Index", controller = "Home", id = "17" }); 271var dictionary = new RouteValueDictionary 289var dictionary = new RouteValueDictionary
Microsoft.AspNetCore.Http.Results (10)
AcceptedAtRoute.cs (2)
41: this(routeName, new RouteValueDictionary(routeValues)) 56RouteValues = routeValues ?? new RouteValueDictionary();
AcceptedAtRouteOfT.cs (2)
44: this(routeName, new RouteValueDictionary(routeValues), value) 62RouteValues = routeValues ?? new RouteValueDictionary();
CreatedAtRoute.cs (2)
41: this(routeName, new RouteValueDictionary(routeValues)) 56RouteValues = routeValues ?? new RouteValueDictionary();
CreatedAtRouteOfT.cs (2)
44: this(routeName, new RouteValueDictionary(routeValues), value) 62RouteValues = routeValues ?? new RouteValueDictionary();
RedirectToRouteHttpResult.cs (2)
99new RouteValueDictionary(routeValues), 125RouteValues = routeValues ?? new RouteValueDictionary();
Microsoft.AspNetCore.Http.Results.Tests (55)
AcceptedAtRouteOfTResultTests.cs (7)
21var routeValues = new RouteValueDictionary(new Dictionary<string, string>() 45var routeValues = new RouteValueDictionary(new Dictionary<string, string>() 74new RouteValueDictionary( 100Assert.Equal(new RouteValueDictionary(values), linkGenerator.RouteValuesAddress.ExplicitValues); 162var routeValues = new RouteValueDictionary(new Dictionary<string, string>() 177var routeValues = new RouteValueDictionary(new Dictionary<string, string>() 194var routeValues = new RouteValueDictionary(new Dictionary<string, string>()
AcceptedAtRouteResultTests.cs (2)
28new RouteValueDictionary( 54Assert.Equal(new RouteValueDictionary(values), linkGenerator.RouteValuesAddress.ExplicitValues);
CreatedAtRouteOfTResultTests.cs (3)
22var routeValues = new RouteValueDictionary(new Dictionary<string, string>() 46new RouteValueDictionary(new Dictionary<string, string>() { 70Assert.Equal(new RouteValueDictionary(values), linkGenerator.RouteValuesAddress.ExplicitValues);
CreatedAtRouteResultTests.cs (2)
29new RouteValueDictionary(new Dictionary<string, string>() { 53Assert.Equal(new RouteValueDictionary(values), linkGenerator.RouteValuesAddress.ExplicitValues);
ResultsTests.cs (23)
94Assert.Equal(new RouteValueDictionary(routeValues), result.RouteValues); 103var routeValues = new RouteValueDictionary { ["foo"] = 123 }; 127Assert.Equal(new RouteValueDictionary(), result.RouteValues); 144Assert.Equal(new RouteValueDictionary(routeValues), result.RouteValues); 153var routeValues = new RouteValueDictionary { ["foo"] = 123 }; 177Assert.Equal(new RouteValueDictionary(), result.RouteValues); 191Assert.Equal(new RouteValueDictionary(), result.RouteValues); 207Assert.Equal(new RouteValueDictionary(routeValues), result.RouteValues); 758Assert.Equal(new RouteValueDictionary(routeValues), result.RouteValues); 767var routeValues = new RouteValueDictionary { ["foo"] = 123 }; 791Assert.Equal(new RouteValueDictionary(), result.RouteValues); 805Assert.Equal(new RouteValueDictionary(), result.RouteValues); 822Assert.Equal(new RouteValueDictionary(routeValues), result.RouteValues); 831var routeValues = new RouteValueDictionary { ["foo"] = 123 }; 857Assert.Equal(new RouteValueDictionary(), result.RouteValues); 874Assert.Equal(new RouteValueDictionary(), result.RouteValues); 889Assert.Equal(new RouteValueDictionary(), result.RouteValues); 904Assert.Equal(new RouteValueDictionary(), result.RouteValues); 916Assert.Equal(new RouteValueDictionary(), result.RouteValues); 1530Assert.Equal(new RouteValueDictionary(routeValues), result.RouteValues); 1541var routeValues = new RouteValueDictionary { ["foo"] = 123 }; 1563Assert.Equal(new RouteValueDictionary(), result.RouteValues); 1574Assert.Equal(new RouteValueDictionary(), result.RouteValues);
TypedResultsTests.cs (18)
122Assert.Equal(new RouteValueDictionary(routeValues), result.RouteValues); 139Assert.Equal(new RouteValueDictionary(routeValues), result.RouteValues); 153Assert.Equal(new RouteValueDictionary(), result.RouteValues); 167Assert.Equal(new RouteValueDictionary(), result.RouteValues); 194Assert.Equal(new RouteValueDictionary(routeValues), result.RouteValues); 210Assert.Equal(new RouteValueDictionary(routeValues), result.RouteValues); 706Assert.Equal(new RouteValueDictionary(routeValues), result.RouteValues); 723Assert.Equal(new RouteValueDictionary(), result.RouteValues); 739Assert.Equal(new RouteValueDictionary(), result.RouteValues); 751Assert.Equal(new RouteValueDictionary(), result.RouteValues); 766Assert.Equal(new RouteValueDictionary(routeValues), result.RouteValues); 782Assert.Equal(new RouteValueDictionary(routeValues), result.RouteValues); 797Assert.Equal(new RouteValueDictionary(), result.RouteValues); 811Assert.Equal(new RouteValueDictionary(), result.RouteValues); 1312Assert.Equal(new RouteValueDictionary(routeValues), result.RouteValues); 1326Assert.Equal(new RouteValueDictionary(), result.RouteValues); 1340Assert.Equal(new RouteValueDictionary(routeValues), result.RouteValues); 1353Assert.Equal(new RouteValueDictionary(), result.RouteValues);
Microsoft.AspNetCore.Http.Tests (2)
Internal\DefaultHttpRequestTests.cs (2)
217request.RouteValues = new RouteValueDictionary(new { key = "value" }); 231RouteValues = new RouteValueDictionary(new { key = "customvalue" })
Microsoft.AspNetCore.Identity (1)
IdentityApiEndpointRouteBuilderExtensions.cs (1)
403var routeValues = new RouteValueDictionary()
Microsoft.AspNetCore.Mvc.Core (26)
AcceptedAtActionResult.cs (1)
38RouteValues = routeValues == null ? null : new RouteValueDictionary(routeValues);
AcceptedAtRouteResult.cs (1)
46RouteValues = routeValues == null ? null : new RouteValueDictionary(routeValues);
Builder\ControllerEndpointRouteBuilderExtensions.cs (6)
114new RouteValueDictionary(defaults), 115new RouteValueDictionary(constraints), 116new RouteValueDictionary(dataTokens)); 155var defaultsDictionary = new RouteValueDictionary(defaults); 158var constraintsDictionary = new RouteValueDictionary(constraints); 508return new DynamicControllerMetadata(new RouteValueDictionary()
Builder\MvcAreaRouteBuilderExtensions.cs (2)
123var defaultsDictionary = new RouteValueDictionary(defaults); 126var constraintsDictionary = new RouteValueDictionary(constraints);
CreatedAtActionResult.cs (1)
38RouteValues = routeValues == null ? null : new RouteValueDictionary(routeValues);
CreatedAtRouteResult.cs (1)
46RouteValues = routeValues == null ? null : new RouteValueDictionary(routeValues);
RedirectToActionResult.cs (1)
125RouteValues = routeValues == null ? null : new RouteValueDictionary(routeValues);
RedirectToPageResult.cs (1)
153RouteValues = routeValues == null ? null : new RouteValueDictionary(routeValues);
RedirectToRouteResult.cs (1)
122RouteValues = routeValues == null ? null : new RouteValueDictionary(routeValues);
Routing\ActionConstraintMatcherPolicy.cs (1)
226routeData.PushState(router: null, values: null, dataTokens: new RouteValueDictionary(dataTokens));
Routing\ActionEndpointFactory.cs (3)
189var requiredValues = new RouteValueDictionary(); 298updatedDefaults = new RouteValueDictionary(attributeRoutePattern.Defaults); 531routeData.PushState(router: null, context.Request.RouteValues, new RouteValueDictionary(dataTokens?.DataTokens));
Routing\AttributeRoute.cs (1)
81var defaults = new RouteValueDictionary();
Routing\ControllerLinkGeneratorExtensions.cs (1)
208var explicitValues = new RouteValueDictionary(values);
Routing\DynamicControllerEndpointMatcherPolicy.cs (1)
133var values = new RouteValueDictionary(dynamicValues);
Routing\PageLinkGeneratorExtensions.cs (1)
208var explicitValues = new RouteValueDictionary(values);
Routing\UrlHelperBase.cs (2)
35_routeValueDictionary = new RouteValueDictionary(); 102return new RouteValueDictionary(values);
UrlHelperExtensions.cs (1)
478var routeValues = new RouteValueDictionary(values);
Microsoft.AspNetCore.Mvc.Core.Test (104)
AcceptedAtRouteResultTests.cs (2)
62var routeValues = new RouteValueDictionary(new Dictionary<string, string>() 91new RouteValueDictionary(
Builder\MvcAreaRouteBuilderExtensionsTest.cs (1)
249var values = new RouteValueDictionary(new { area = areaName });
ConsumesAttributeTests.cs (1)
410foreach (var kvp in new RouteValueDictionary(routeValues))
ControllerBaseTest.cs (9)
1416new RouteValueDictionary(expected), null); 1453var result = controller.CreatedAtRoute(new RouteValueDictionary(expected), null); 1474var result = controller.CreatedAtRoute(routeName, new RouteValueDictionary(expected), null); 1610new RouteValueDictionary(expected)); 1632var result = controller.AcceptedAtRoute(new RouteValueDictionary(expected)); 1653var result = controller.AcceptedAtRoute(routeName, new RouteValueDictionary(expected)); 2591new RouteValueDictionary() { { "hello", "world" } }, 2602new RouteValueDictionary(expected2), 2603new RouteValueDictionary(expected2),
CreatedAtRouteResultTests.cs (1)
30new RouteValueDictionary(new Dictionary<string, string>() {
Infrastructure\ActionSelectionTableTest.cs (15)
43var values = new RouteValueDictionary(new { controller = "Home", action = "Index", }); 80var values = new RouteValueDictionary(new { controller = "Home", action = "Index", }); 120var values = new RouteValueDictionary(new { controller = "Home", action = "Index", }); 158var values = new RouteValueDictionary(new { controller = "Home", action = "Index", }); 193var values = new RouteValueDictionary(new { controller = "Home", action = "Index", }); 228var values = new RouteValueDictionary(new { controller = "Foo", action = "Index", }); 258var values = new RouteValueDictionary(new { controller = "Home", action = "Index", }); 288var values = new RouteValueDictionary(new { controller = "Home", action = "Index", }); 337var values = new RouteValueDictionary(new { controller = "Home", action = "Index", }); 386var values = new RouteValueDictionary(new { controller = "HOME", action = "iNDex", }); 416var values = new RouteValueDictionary(new { area = "", controller = "Home", action = "Index", }); 447var values = new RouteValueDictionary(new { area = "", controller = "HoMe", action = "InDeX", }); 478var values = new RouteValueDictionary(new { area = (string)null, controller = "Home", action = "Index", }); 507var values = new RouteValueDictionary(new { foo = "", controller = "Home", action = "Index", }); 536var values = new RouteValueDictionary(new { foo = (string)null, controller = "Home", action = "Index", });
Infrastructure\ActionSelectorTest.cs (2)
1093new RouteValueDictionary(ambientValues), 1094new RouteValueDictionary(routeValues));
ModelBinding\DefaultModelBindingContextTest.cs (1)
172result.Add(new RouteValueProvider(BindingSource.Path, new RouteValueDictionary()));
ModelBinding\RouteValueProviderTests.cs (14)
16var values = new RouteValueDictionary(new Dictionary<string, object> 33var values = new RouteValueDictionary(new Dictionary<string, object> 51var values = new RouteValueDictionary(new Dictionary<string, object> 68var values = new RouteValueDictionary(new Dictionary<string, object> 87var values = new RouteValueDictionary(new Dictionary<string, object> 104var values = new RouteValueDictionary(new Dictionary<string, object> 121var values = new RouteValueDictionary(new Dictionary<string, object> 142var values = new RouteValueDictionary(new Dictionary<string, object> 163var values = new RouteValueDictionary(new Dictionary<string, object> 182var values = new RouteValueDictionary(new Dictionary<string, object> 200var values = new RouteValueDictionary(new Dictionary<string, object> 217var values = new RouteValueDictionary(new Dictionary<string, object> 234var values = new RouteValueDictionary(); 255var values = new RouteValueDictionary();
ModelBinding\TestValueProvider.cs (2)
18: base(TestBindingSource, new RouteValueDictionary(values)) 25: base(bindingSource, new RouteValueDictionary(values))
RedirectToRouteResultTest.cs (1)
204new RouteValueDictionary(new Dictionary<string, string>() {
Routing\ActionEndpointFactoryTest.cs (7)
62defaults: new RouteValueDictionary(new { action = "TestAction" })); 143defaults: new RouteValueDictionary(new { controller = "TestController", action = "TestAction1" })); 165defaults: new RouteValueDictionary(new { controller = "TestController", action = "TestAction1" })); 299constraints: new RouteValueDictionary(new { action = "(TestAction1|TestAction2)" })); 317constraints: new RouteValueDictionary(new { action = "(TestAction1|TestAction2)" })); 415AssertIsSubset(new RouteValueDictionary(action.RouteValues), endpoint.RoutePattern.RequiredValues); 462var routeValues = new RouteValueDictionary(requiredValues);
Routing\AttributeRouteTest.cs (2)
235Assert.Equal(new RouteValueDictionary(new { slug = "hello" }), e.Defaults); 821var result = new RouteValueDictionary();
Routing\ControllerActionEndpointDataSourceTest.cs (1)
567foreach (var kvp in new RouteValueDictionary(values))
Routing\ControllerLinkGeneratorExtensionsTest.cs (6)
64values: new RouteValueDictionary(new { query = "some?query" }), 91values: new RouteValueDictionary(new { query = "some?query" }), 123values: new RouteValueDictionary(new { query = "some?query" }), 150values: new RouteValueDictionary(new { query = "some?query" }), 184values: new RouteValueDictionary(new { query = "some?query" }), 233httpContext.Request.RouteValues = new RouteValueDictionary(ambientValues);
Routing\DynamicControllerEndpointMatcherPolicyTest.cs (12)
142return new ValueTask<RouteValueDictionary>(new RouteValueDictionary()); 173return new ValueTask<RouteValueDictionary>(new RouteValueDictionary(new 212var values = new RouteValueDictionary[] { new RouteValueDictionary(new { slug = "test", }), }; 219return new ValueTask<RouteValueDictionary>(new RouteValueDictionary(new 243var values = new RouteValueDictionary[] { new RouteValueDictionary(new { slug = "test", }), }; 250return new ValueTask<RouteValueDictionary>(new RouteValueDictionary(new 300var values = new RouteValueDictionary[] { new RouteValueDictionary(new { slug = "test", }), }; 307return new ValueTask<RouteValueDictionary>(new RouteValueDictionary(new 339var values = new RouteValueDictionary[] { new RouteValueDictionary(new { slug = "test", }), }; 346return new ValueTask<RouteValueDictionary>(new RouteValueDictionary(new 401var values = new RouteValueDictionary[] { new RouteValueDictionary(new { slug = "test", }), }; 408return new ValueTask<RouteValueDictionary>(new RouteValueDictionary(new
Routing\EndpointRoutingUrlHelperTest.cs (2)
56urlHelper.ActionContext.HttpContext.Request.RouteValues = new RouteValueDictionary 163var endpoint = CreateEndpoint(template, new RouteValueDictionary(defaults), requiredValues, routeName: routeName);
Routing\KnownRouteValueConstraintTests.cs (8)
41var values = new RouteValueDictionary() 69var values = new RouteValueDictionary(); 102var values = new RouteValueDictionary() 139var values = new RouteValueDictionary() 168var values = new RouteValueDictionary() 196new RouteValueDictionary { { "area", "area" } }, 225var values = new RouteValueDictionary() 254var values = new RouteValueDictionary()
Routing\PageLinkGeneratorExtensionsTest.cs (6)
35values: new RouteValueDictionary(new { id = 18, query = "some?query" }), 62values: new RouteValueDictionary(new { user = "jamesnk", query = "some?query" }), 93values: new RouteValueDictionary(new { id = 19, query = "some?query" }), 120values: new RouteValueDictionary(new { id = 19, query = "some?query" }), 154values: new RouteValueDictionary(new { query = "some?query" }), 203httpContext.Request.RouteValues = new RouteValueDictionary(ambientValues);
Routing\UrlHelperExtensionsTest.cs (1)
64new RouteValueDictionary
Routing\UrlHelperTest.cs (3)
104new RouteValueDictionary(new { controller = "Orders", action = "GetById" })); 109new RouteValueDictionary(new { id = "defaultid" })); 114new RouteValueDictionary(new { id = "defaultid" }));
Routing\UrlHelperTestBase.cs (7)
334values: new RouteValueDictionary( 355values: new RouteValueDictionary( 378values: new RouteValueDictionary( 401values: new RouteValueDictionary( 424values: new RouteValueDictionary( 533values: new RouteValueDictionary( 1083RouteData = new RouteData(new RouteValueDictionary()),
Microsoft.AspNetCore.Mvc.Core.TestCommon (1)
LinkBuilder.cs (1)
26var dictionary = new RouteValueDictionary(values);
Microsoft.AspNetCore.Mvc.Razor.RuntimeCompilation.Test (1)
PageLoaderMatcherPolicyTest.cs (1)
101values[i] = new RouteValueDictionary();
Microsoft.AspNetCore.Mvc.RazorPages (2)
Builder\RazorPagesEndpointRouteBuilderExtensions.cs (1)
355return new DynamicPageMetadata(new RouteValueDictionary()
Infrastructure\DynamicPageEndpointMatcherPolicy.cs (1)
132var values = new RouteValueDictionary(dynamicValues);
Microsoft.AspNetCore.Mvc.RazorPages.Test (19)
Infrastructure\DynamicPageEndpointMatcherPolicyTest.cs (12)
159return new ValueTask<RouteValueDictionary>(new RouteValueDictionary()); 190return new ValueTask<RouteValueDictionary>(new RouteValueDictionary(new 223var values = new RouteValueDictionary[] { new RouteValueDictionary(new { slug = "test", }), }; 230return new ValueTask<RouteValueDictionary>(new RouteValueDictionary(new 274var values = new RouteValueDictionary[] { new RouteValueDictionary(new { slug = "test", }), }; 281return new ValueTask<RouteValueDictionary>(new RouteValueDictionary(new 304var values = new RouteValueDictionary[] { new RouteValueDictionary(new { slug = "test", }), }; 311return new ValueTask<RouteValueDictionary>(new RouteValueDictionary(new 342var values = new RouteValueDictionary[] { new RouteValueDictionary(new { slug = "test", }), }; 349return new ValueTask<RouteValueDictionary>(new RouteValueDictionary(new 402var values = new RouteValueDictionary[] { new RouteValueDictionary(new { slug = "test", }), }; 409return new ValueTask<RouteValueDictionary>(new RouteValueDictionary(new
Infrastructure\PageActionEndpointDataSourceTest.cs (1)
275foreach (var kvp in new RouteValueDictionary(values))
PageModelTest.cs (3)
942new RouteValueDictionary() { { "hello", "world" } }, 953new RouteValueDictionary(expected2), 954new RouteValueDictionary(expected2),
PageTest.cs (3)
1871new RouteValueDictionary() { { "hello", "world" } }, 1882new RouteValueDictionary(expected2), 1883new RouteValueDictionary(expected2),
Microsoft.AspNetCore.Mvc.Routing.Abstractions.Tests (7)
RouteDataTest.cs (6)
67var snapshot = routeData.PushState(null, new RouteValueDictionary(), new RouteValueDictionary()); 91new RouteValueDictionary(new { bleh = (string)null }), 92new RouteValueDictionary()); 137new RouteValueDictionary(new { route = "value2" }), 138new RouteValueDictionary(new { data = "token2" }));
VirtualPathDataTests.cs (1)
33var dataTokens = new RouteValueDictionary();
Microsoft.AspNetCore.Mvc.TagHelpers (6)
AnchorTagHelper.cs (2)
221routeValues = new RouteValueDictionary(_routeValues); 229routeValues = new RouteValueDictionary();
FormActionTagHelper.cs (2)
233routeValues = new RouteValueDictionary(_routeValues); 240routeValues = new RouteValueDictionary();
FormTagHelper.cs (2)
240routeValues = new RouteValueDictionary(_routeValues); 247routeValues = new RouteValueDictionary();
Microsoft.AspNetCore.Mvc.Test (1)
Routing\ActionConstraintMatcherPolicyTest.cs (1)
490values[i] = new RouteValueDictionary();
Microsoft.AspNetCore.Mvc.ViewFeatures (1)
RemoteAttributeBase.cs (1)
39RouteData = new RouteValueDictionary();
Microsoft.AspNetCore.Mvc.ViewFeatures.Test (5)
PageRemoteAttributeTest.cs (4)
33var ambientValues = new RouteValueDictionary() 71var ambientValues = new RouteValueDictionary 103var ambientValues = new RouteValueDictionary 133var ambientValues = new RouteValueDictionary
Rendering\HtmlHelperCheckboxTest.cs (1)
484var dictionary = new RouteValueDictionary(new { Property3 = "Property3Value" });
Microsoft.AspNetCore.OutputCaching.Tests (4)
OutputCacheAttributeTests.cs (1)
109context.HttpContext.Request.RouteValues = new Routing.RouteValueDictionary()
OutputCachePolicyBuilderTests.cs (3)
140context.HttpContext.Request.RouteValues = new Routing.RouteValueDictionary() 160context.HttpContext.Request.RouteValues = new Routing.RouteValueDictionary() 180context.HttpContext.Request.RouteValues = new Routing.RouteValueDictionary()
Microsoft.AspNetCore.Routing (40)
DefaultLinkParser.cs (2)
111var matcher = new RoutePatternMatcher(endpoint.RoutePattern, new RouteValueDictionary(endpoint.RoutePattern.Defaults)); 123values = new RouteValueDictionary();
LinkGeneratorEndpointNameAddressExtensions.cs (7)
48new RouteValueDictionary(values), 88values ?? new(), 120return generator.GetPathByAddress<string>(endpointName, new RouteValueDictionary(values), pathBase, fragment, options); 148return generator.GetPathByAddress<string>(endpointName, values ?? new(), pathBase, fragment, options); 201new RouteValueDictionary(values), 260values ?? new(), 315return generator.GetUriByAddress<string>(endpointName, new RouteValueDictionary(values), scheme, host, pathBase, fragment, options);
LinkGeneratorRouteValuesAddressExtensions.cs (5)
44var address = CreateAddress(httpContext, routeName, new(values)); 119var address = CreateAddress(httpContext: null, routeName, new(values)); 197var address = CreateAddress(httpContext, routeName, new(values)); 308var address = CreateAddress(httpContext: null, routeName, new(values)); 360ExplicitValues = values ?? new(),
MapRouteRouteBuilderExtensions.cs (3)
121new RouteValueDictionary(defaults), 122new RouteValueDictionary(constraints)!, 123new RouteValueDictionary(dataTokens),
Matching\DfaMatcher.cs (2)
160state.Values ??= new RouteValueDictionary(); 170state.Values ??= new RouteValueDictionary();
Matching\DfaMatcherBuilder.cs (1)
374var routeValues = new RouteValueDictionary();
Patterns\DefaultRoutePatternTransformer.cs (2)
27return SubstituteRequiredValues(original, new RouteValueDictionary(requiredValues)); 173updatedDefaults = new RouteValueDictionary(original.Defaults);
Patterns\RoutePatternFactory.cs (1)
1154return values is null ? null : new RouteValueDictionary(values);
Patterns\RoutePatternMatcher.cs (2)
30Defaults = defaults ?? new RouteValueDictionary(); 347var outValues = new RouteValueDictionary();
RequestDelegateRouteBuilderExtensions.cs (1)
260var constraints = new RouteValueDictionary
RouteBase.cs (3)
47DataTokens = dataTokens ?? new RouteValueDictionary(); 244var result = defaults == null ? new RouteValueDictionary() : new RouteValueDictionary(defaults);
RouteValuesAddressScheme.cs (2)
156RequiredLinkValues = new RouteValueDictionary(requiredValues), 161entry.Defaults = new RouteValueDictionary(endpoint.RoutePattern.Defaults);
Template\TemplateBinder.cs (4)
83var filters = new RouteValueDictionary(_defaults); 110_defaults = new RouteValueDictionary(pattern.Defaults); 115var filters = new RouteValueDictionary(_defaults); 406var combinedValues = new RouteValueDictionary(acceptedValues);
Template\TemplateMatcher.cs (1)
33Defaults = defaults ?? new RouteValueDictionary();
Tree\LinkGenerationDecisionTree.cs (1)
21private static readonly RouteValueDictionary EmptyAmbientValues = new RouteValueDictionary();
Tree\TreeRouteBuilder.cs (2)
145entry.Defaults = new RouteValueDictionary(); 219entry.Defaults = new RouteValueDictionary();
Tree\TreeRouter.cs (1)
296var inputValues = new RouteValueDictionary();
Microsoft.AspNetCore.Routing.Abstractions (8)
RouteData.cs (6)
45_dataTokens = new RouteValueDictionary(other._dataTokens); 50_values = new RouteValueDictionary(other._values); 74_dataTokens = new RouteValueDictionary(); 106_values = new RouteValueDictionary(); 157_dataTokens?.Count > 0 ? new RouteValueDictionary(_dataTokens) : null, 159_values?.Count > 0 ? new RouteValueDictionary(_values) : null);
VirtualPathData.cs (2)
40_dataTokens = dataTokens == null ? null : new RouteValueDictionary(dataTokens); 52_dataTokens = new RouteValueDictionary();
Microsoft.AspNetCore.Routing.Microbenchmarks (14)
EndpointRoutingBenchmarkBase.cs (2)
130context.Request.RouteValues = new RouteValueDictionary(ambientValues); 143requiredLinkValues: new RouteValueDictionary(endpoint.RoutePattern.RequiredValues),
LinkGeneration\LinkGenerationGithubBenchmark.cs (2)
40_lookUpValues = new RouteValueDictionary(endpointToTest.RoutePattern.Defaults); 59values: new RouteValueDictionary(_lookUpValues)));
LinkGeneration\SingleRouteRouteValuesAddressSchemeBenchmark.cs (1)
43ExplicitValues = new RouteValueDictionary(new { controller = "Products", action = "Details" }),
LinkGeneration\SingleRouteWithConstraintsBenchmark.cs (1)
43values: new RouteValueDictionary(
LinkGeneration\SingleRouteWithNoParametersBenchmark.cs (1)
43values: new RouteValueDictionary(
LinkGeneration\SingleRouteWithParametersBenchmark.cs (1)
43values: new RouteValueDictionary(
Matching\TrivialMatcher.cs (1)
31httpContext.Request.RouteValues = new RouteValueDictionary();
src\Http\Routing\test\UnitTests\Matching\BarebonesMatcher.cs (2)
30httpContext.Request.RouteValues = new RouteValueDictionary(); 118httpContext.Request.RouteValues = new RouteValueDictionary();
src\Http\Routing\test\UnitTests\Matching\RouteMatcherBuilder.cs (2)
52var defaults = new RouteValueDictionary(endpoint.RoutePattern.Defaults); 67new RouteValueDictionary(),
src\Http\Routing\test\UnitTests\Matching\TreeRouterMatcherBuilder.cs (1)
56var defaults = new RouteValueDictionary(endpoint.RoutePattern.Defaults);
Microsoft.AspNetCore.Routing.Tests (528)
Builder\RouteHandlerEndpointRouteBuilderExtensionsTest.cs (1)
202httpContext.Request.RouteValues = new();
ConstraintMatcherTest.cs (8)
22var routeValueDictionary = new RouteValueDictionary(new { a = "value", b = "value" }); 90var routeValueDictionary = new RouteValueDictionary(new { a = "value", b = "value" }); 110var routeValueDictionary = new RouteValueDictionary(new { a = "value", b = "value" }); 130var routeValueDictionary = new RouteValueDictionary(new { c = "value", d = "value" }); 150var routeValueDictionary = new RouteValueDictionary(new { a = "value", b = "value" }); 170var routeValueDictionary = new RouteValueDictionary(new { a = "value", b = "value" }); 186routeValues: new RouteValueDictionary(), 199var routeValueDictionary = new RouteValueDictionary(new { a = "value", b = "value" });
Constraints\ConstraintsTestHelper.cs (1)
11var values = new RouteValueDictionary() { { parameterName, value } };
Constraints\FileNameRouteConstraintTest.cs (3)
34var values = new RouteValueDictionary(); 72var values = new RouteValueDictionary(); 88var values = new RouteValueDictionary();
Constraints\HttpMethodRouteConstraintTests.cs (4)
23var values = new RouteValueDictionary(new { }); 44var values = new RouteValueDictionary(new { }); 64var values = new RouteValueDictionary(new { httpMethod = httpMethod }); 84var values = new RouteValueDictionary(new { httpMethod = httpMethod });
Constraints\NonFIleNameRouteConstraintTest.cs (3)
15var values = new RouteValueDictionary(); 32var values = new RouteValueDictionary(); 48var values = new RouteValueDictionary();
Constraints\RegexInlineRouteConstraintTests.cs (3)
27var values = new RouteValueDictionary(new { controller = routeValue }); 46var values = new RouteValueDictionary(new { action = "abc" }); 74var values = new RouteValueDictionary(new { controller = "\u0130" }); // Turkish upper-case dotted I
Constraints\RegexRouteConstraintTests.cs (5)
31var values = new RouteValueDictionary(new { controller = routeValue }); 50var values = new RouteValueDictionary(new { controller = "abc" }); 69var values = new RouteValueDictionary(new { controller = "Abc" }); 88var values = new RouteValueDictionary(new { action = "abc" }); 116var values = new RouteValueDictionary(new { controller = "\u0130" }); // Turkish upper-case dotted I
Constraints\RequiredRouteConstraintTests.cs (4)
25new RouteValueDictionary(new { controller = "Home", action = "Index" }), 45new RouteValueDictionary(new { controller = "Home", action = "Index", area = (string)null }), 65new RouteValueDictionary(new { controller = "Home", action = "Index", area = string.Empty }), 85new RouteValueDictionary(new { controller = "Home", action = "Index", area = "Store" }),
Constraints\StringRouteConstraintTest.cs (7)
18var values = new RouteValueDictionary(new { controller = "home" }); 38var values = new RouteValueDictionary(new { controller = "home" }); 58var values = new RouteValueDictionary(new { controller = "home" }); 78var values = new RouteValueDictionary(new { controller = "home" }); 98var values = new RouteValueDictionary(new { controller = "admin" }); 118var values = new RouteValueDictionary(new { controller = "admin" }); 142var values = new RouteValueDictionary(new { controller = routeValue });
DefaultLinkGeneratorProcessTemplateTest.cs (58)
26values: new RouteValueDictionary(new { p1 = "Home", p3 = "bar", }), 51values: new RouteValueDictionary(new { path = routeValue, }), 83values: new RouteValueDictionary(new { path = routeValue, }), 106values: new RouteValueDictionary(new { path = "a/b b1/c c1" }), 129values: new RouteValueDictionary(new { name = "name with %special #characters" }), 152values: new RouteValueDictionary(new { color = new List<string> { "red", "green", "blue" } }), 175values: new RouteValueDictionary(new { items = new List<int> { 10, 20, 30 } }), 198values: new RouteValueDictionary(new { color = new List<string> { } }), 221values: new RouteValueDictionary(new { page = 1, color = new List<string> { "red", "green", "blue" }, message = "textfortest" }), 244values: new RouteValueDictionary(new { action = "Index" }), 272values: new RouteValueDictionary(new { action = "Index" }), 301values: new RouteValueDictionary(new { id = "18" }), 325values: new RouteValueDictionary(new { id = "18" }), 357values: new RouteValueDictionary(new { action = "П" }), 396values: new RouteValueDictionary(new { action = "Index", ShowStatus = "True", INFO = "DETAILED" }), 426values: new RouteValueDictionary(new { action = "Index" }), 461values: new RouteValueDictionary(new { action = "Index", ShowStatus = "True", INFO = "DETAILED" }), 491values: new RouteValueDictionary(new { action = "InDex" }), 524values: new RouteValueDictionary(new { action = "InDex" }), 561values: new RouteValueDictionary(new { action = "Index", ShowStatus = "True", INFO = "DETAILED" }), 599values: new RouteValueDictionary(new { action = "Index", ShowStatus = "True", INFO = "DETAILED" }), 633values: new RouteValueDictionary(new { action = "Index" }), 659values: new RouteValueDictionary(new { p1 = "abcd" }), 683values: new RouteValueDictionary(new { p1 = "hello", p2 = "1234" }), 709values: new RouteValueDictionary(new { p1 = "abcd" }), 733values: new RouteValueDictionary(new { p1 = "hello", p2 = "1234" }), 770values: new RouteValueDictionary(new { p1 = "hello", p2 = "1234" }), 797var expectedValues = new RouteValueDictionary( 804values: new RouteValueDictionary(new { action = "Store" }), 830var expectedValues = new RouteValueDictionary( 837values: new RouteValueDictionary(new { action = "Store" }), 862var expectedValues = new RouteValueDictionary( 869values: new RouteValueDictionary(new { controller = "Shopping" }), 896var expectedValues = new RouteValueDictionary( 903values: new RouteValueDictionary(new { action = "Store", thirdthing = "13" }), 933values: new RouteValueDictionary(new { action = "Index", controller = "Home", id = 4 }), 959values: new RouteValueDictionary(new { action = "Index", controller = "Home", id = "not-an-integer" }), 985values: new RouteValueDictionary(new { action = "Index", controller = "Home", id = 98 }), 1011values: new RouteValueDictionary(new { action = "Index", controller = "Home" }), 1037values: new RouteValueDictionary(new { action = "Index", controller = "Home", id = "not-an-integer" }), 1063values: new RouteValueDictionary(new { action = "Index", controller = "Home", id = 14 }), 1091values: new RouteValueDictionary(new { action = "Index", controller = "Home", id = 50 }), 1116values: new RouteValueDictionary(new { action = "Index", controller = "Home", name = "products" }), 1139values: new RouteValueDictionary(new { action = "Index", controller = "Home", name = "products" }), 1162values: new RouteValueDictionary(new { action = "Index", controller = "Home" }), 1187values: new RouteValueDictionary(new { action = "Index", controller = "Home", name = "products" }), 1212values: new RouteValueDictionary(new { action = "Index", controller = "Home" }), 1235values: new RouteValueDictionary(new { action = "Index", controller = "Home", name = "products", format = "json" }), 1259values: new RouteValueDictionary(new { action = "Index", controller = "Home", name = "products" }), 1282values: new RouteValueDictionary(new { action = "Index", controller = "Home" }), 1304values: new RouteValueDictionary(new { action = "Index", controller = "Home" }), 1327values: new RouteValueDictionary(new { }), 1350values: new RouteValueDictionary(new { }), 1373values: new RouteValueDictionary(new { }), 1477values: new RouteValueDictionary(explicitValues), 1505values: new RouteValueDictionary(new { c = "Products", a = "Edit" }), 1533values: new RouteValueDictionary(new { c = "Products", a = "List" }), 1641values: new RouteValueDictionary(explicitValues),
DefaultLinkGeneratorTest.cs (26)
87var path = linkGenerator.GetPathByAddress(1, values: new RouteValueDictionary(new { controller = "Home", action = "Index", })); 103var path = linkGenerator.GetPathByAddress(CreateHttpContext(), 1, values: new RouteValueDictionary(new { controller = "Home", action = "Index", })); 121values: new RouteValueDictionary(new { controller = "Home", action = "Index", }), 143var uri = linkGenerator.GetUriByAddress(httpContext, 1, values: new RouteValueDictionary(new { controller = "Home", action = "Index", })); 161values: new RouteValueDictionary(new { controller = "Home", action = "Index", }), 188values: new RouteValueDictionary(new { controller = "TestController", action = "Index", })); 214values: new RouteValueDictionary(new { controller = "TestController", action = "Index", }), 234values: new RouteValueDictionary(new { controller = "Home", action = "Index", }), 253values: new RouteValueDictionary(new { controller = "Home", action = "Index", }), 279values: new RouteValueDictionary(new { controller = "Home", action = "Index", }), 299values: new RouteValueDictionary(new { controller = "Home", action = "In?dex", query = "some?query" }), 373values: new RouteValueDictionary(new { controller = "Home", action = "In?dex", query = "some?query" }), 393values: new RouteValueDictionary(new { controller = "Home", action = "In?dex", query = "some?query" }), 422values: new RouteValueDictionary(new { controller = "Home", action = "In?dex", query = "some?query" }), 446values: new RouteValueDictionary(new { action = "Index", }), 447ambientValues: new RouteValueDictionary(new { controller = "Home", })); 470values: new RouteValueDictionary(new { action = "Index", }), 471ambientValues: new RouteValueDictionary(new { controller = "Home", })); 493values: new RouteValueDictionary(new { action = "Index", controller = "Home", }), 518values: new RouteValueDictionary(new { action = "Index", controller = "Home", }), 544values: new RouteValueDictionary(new { action = "Index", controller = "Home", }), 634httpContext.Request.RouteValues = new RouteValueDictionary(new { controller = "Home", action = "Index" }); 636var values = new RouteValueDictionary(); 673httpContext.Request.RouteValues = new RouteValueDictionary(new { controller = "Home", action = "Index", }); 675var values = new RouteValueDictionary(); 713var values = new RouteValueDictionary();
LinkGeneratorEndpointNameExtensionsTest.cs (1)
27httpContext.Request.RouteValues = new RouteValueDictionary(new { p = "5", });
LinkGeneratorIntegrationTest.cs (2)
706ExplicitValues = new RouteValueDictionary(values), 707AmbientValues = new RouteValueDictionary(ambientValues),
LinkGeneratorRouteValuesAddressExtensionsTest.cs (7)
33httpContext.Request.RouteValues = new RouteValueDictionary(new { action = "Index", }); 40values: new RouteValueDictionary(new { controller = "Home", query = "some?query" }), 66values: new RouteValueDictionary(new { controller = "Home", action = "Index", query = "some?query" }), 97values: new RouteValueDictionary(new { controller = "Home", action = "Index", query = "some?query" }), 123values: new RouteValueDictionary(new { controller = "Home", action = "Index", query = "some?query" }), 158values: new RouteValueDictionary(new { controller = "Home", action = "Index", query = "some?query" }), 190values: new RouteValueDictionary(new { action = "Index", query = "some?query" }),
LinkGeneratorTestBase.cs (1)
17httpContext.Request.RouteValues = new RouteValueDictionary(ambientValues);
Matching\BarebonesMatcher.cs (2)
30httpContext.Request.RouteValues = new RouteValueDictionary(); 118httpContext.Request.RouteValues = new RouteValueDictionary();
Matching\CandidateSetTest.cs (2)
65var values = new RouteValueDictionary(); 346values[i] = new RouteValueDictionary()
Matching\ContentEncodingNegotiationMatcherPolicyTest.cs (1)
631endpoints.Select(e => new RouteValueDictionary()).ToArray(),
Matching\DefaultEndpointSelectorTest.cs (2)
37candidateSet[0].Values = new RouteValueDictionary(); 58candidateSet[0].Values = new RouteValueDictionary();
Matching\MatcherAssert.cs (5)
13AssertRouteValuesEqual(new RouteValueDictionary(expectedValues), actualValues); 28AssertMatch(httpContext, expected, new RouteValueDictionary()); 33AssertMatch(httpContext, expected, new RouteValueDictionary(), ignoreValues); 38AssertMatch(httpContext, expected, new RouteValueDictionary(values)); 52AssertMatch(httpContext, expected, new RouteValueDictionary(zipped));
Matching\MatcherConformanceTest.SingleEndpoint.cs (4)
199var values = new RouteValueDictionary(new { p = "14", }); 214var values = new RouteValueDictionary(new { p = "14", }); 229var values = new RouteValueDictionary(new { p = "14", }); 244var values = new RouteValueDictionary()
Matching\RouteMatcherBuilder.cs (2)
52var defaults = new RouteValueDictionary(endpoint.RoutePattern.Defaults); 67new RouteValueDictionary(),
Matching\TreeRouterMatcherBuilder.cs (1)
56var defaults = new RouteValueDictionary(endpoint.RoutePattern.Defaults);
Patterns\RoutePatternMatcherTest.cs (72)
17var values = new RouteValueDictionary(); 35var values = new RouteValueDictionary(); 50var values = new RouteValueDictionary(); 68var values = new RouteValueDictionary(); 83var values = new RouteValueDictionary(); 100var values = new RouteValueDictionary(); 123var values = new RouteValueDictionary(); 156var values = new RouteValueDictionary(); 191var values = new RouteValueDictionary(); 229var values = new RouteValueDictionary(); 244var values = new RouteValueDictionary(); 260var values = new RouteValueDictionary(); 275var values = new RouteValueDictionary(); 291var values = new RouteValueDictionary(); 307var values = new RouteValueDictionary(); 324var values = new RouteValueDictionary(); 339var values = new RouteValueDictionary(); 354var values = new RouteValueDictionary(); 376var values = new RouteValueDictionary(); 391var values = new RouteValueDictionary(); 412var values = new RouteValueDictionary(); 434new RouteValueDictionary(new { lang = "en", region = "US" })); 444new RouteValueDictionary(new { lang = "en", region = "US" })); 454new RouteValueDictionary(new { lang = "en", region = "US" })); 464new RouteValueDictionary(new { lang = "en", region = "US" })); 494new RouteValueDictionary(new { lang = "en" })); 524new RouteValueDictionary(new { lang = "en" })); 534new RouteValueDictionary(new { lang = "en" })); 544new RouteValueDictionary(new { lang = "en" })); 553new RouteValueDictionary(new { action = "Index", id = (string)null }), 554new RouteValueDictionary(new { controller = "home", action = "index", id = (string)null })); 563new RouteValueDictionary(new { lang = "xx", region = "yy" }), 574new RouteValueDictionary(new { Controller = "Home", id = "123", Param1 = "p1" })); 584new RouteValueDictionary(new { Controller = "Home", action = "index" })); 594new RouteValueDictionary(new { Controller = "Home", action = "index" })); 604new RouteValueDictionary(new { Controller = "Home", action = "index" })); 614new RouteValueDictionary(new { Controller = "Home", action = "index" })); 624new RouteValueDictionary(new { Controller = "Home" })); 634new RouteValueDictionary(new { Controller = "Home" })); 644new RouteValueDictionary(new { Controller = "Home", id = "123", Param1 = "p1" })); 654new RouteValueDictionary()); 664new RouteValueDictionary()); 674new RouteValueDictionary()); 684new RouteValueDictionary(new 691new RouteValueDictionary(new { controller = "Home", action = "ShowPilot", missionId = "777", name = "12345./foobar" })); 700var values = new RouteValueDictionary(); 718var values = new RouteValueDictionary(); 736var values = new RouteValueDictionary(); 754var values = new RouteValueDictionary(new { p2 = "hello" }); 772var values = new RouteValueDictionary(new { p2 = "overridden" }); 790var values = new RouteValueDictionary(new { p2 = "overridden" }); 843new RouteValueDictionary()); 852new RouteValueDictionary() { { " ", "not a space" }, { "op.tional", "default value" }, { "ran!dom", "va@lue" } }, 853new RouteValueDictionary() { { " ", "space" }, { ".!$%", "weimatch" }, { "dynamic.data", "omatcherid" }, { "op.tional", "default value" }, { "ran!dom", "va@lue" } }); 862new RouteValueDictionary(new { language = "en", locale = "US" }), 872new RouteValueDictionary(new { language = "en", locale = "US" }), 882new RouteValueDictionary(new { language = "en", locale = "US" }), 892new RouteValueDictionary(new { language = "en", locale = "US" }), 893new RouteValueDictionary { { "language", "xx" }, { "locale", "yy" }, { "controller", "foo" } }); 903var values = new RouteValueDictionary(); 922var values = new RouteValueDictionary(); 941var values = new RouteValueDictionary(); 959var values = new RouteValueDictionary(); 976var values = new RouteValueDictionary(); 1001var values = new RouteValueDictionary(); 1024var values = new RouteValueDictionary(); 1047var values = new RouteValueDictionary(); 1064var values = new RouteValueDictionary(); 1081var values = new RouteValueDictionary(); 1094new RouteValueDictionary(defaults)); 1106defaults ?? new RouteValueDictionary()); 1108var values = new RouteValueDictionary();
RouteCollectionTest.cs (13)
130var pathContextValues = new RouteValueDictionary { { "controller", virtualPath } }; 141var expectedDataTokens = dataTokens ?? new RouteValueDictionary(); 337new RouteValueDictionary { { "controller", "Home" }, { "action", "Index" } }, 343new RouteValueDictionary { { "controller", "Home" }, { "action", "Index" } }, 349new RouteValueDictionary { { "action", "Create" } }, 355new RouteValueDictionary { 365new RouteValueDictionary { 410new RouteValueDictionary(new { controller = "Test", action = "Index" }), 422new RouteValueDictionary(new { a = "Test", c = "Foo" }), 485yield return new object[] { new RouteValueDictionary(), null }; 486yield return new object[] { new RouteValueDictionary() { { "tokenKey", "tokenValue" } }, null }; 489yield return new object[] { new RouteValueDictionary(), "routerA" }; 490yield return new object[] { new RouteValueDictionary() { { "tokenKey", "tokenValue" } }, "routerA" };
RouteConstraintBuilderTest.cs (1)
161var routeValues = new RouteValueDictionary(new { controller = routeValue });
RouteTest.cs (28)
81dataTokens: new RouteValueDictionary(new { today = "Friday" }), 136constraints: new RouteValueDictionary(new { action = constraint }), 137dataTokens: new RouteValueDictionary(new { today = "Friday" }), 666values: new RouteValueDictionary(new { name = nameRouteValue }), 667ambientValues: new RouteValueDictionary(new { controller = "Home", action = "Index" })); 766new RouteValueDictionary() { { "ThisShouldBeIgnored", "" } }; 775var expectedDataTokens = dataTokens ?? new RouteValueDictionary(); 816var expectedDataTokens = dataTokens ?? new RouteValueDictionary(); 877new RouteValueDictionary(new { p2 = "\\d{4}" })); 896new RouteValueDictionary(new { p2 = "\\d{4}" })); 918new RouteValueDictionary(new { p2 = "\\d{4}" })); 937new RouteValueDictionary(new { p2 = "\\d{4}" })); 971new RouteValueDictionary(new { p2 = target.Object })); 1002var expectedValues = new RouteValueDictionary( 1033var expectedValues = new RouteValueDictionary( 1063var expectedValues = new RouteValueDictionary( 1094var expectedValues = new RouteValueDictionary( 1503return CreateVirtualPathContext(new RouteValueDictionary(values), null); 1508return CreateVirtualPathContext(new RouteValueDictionary(values), new RouteValueDictionary(ambientValues)); 1542new RouteValueDictionary { { "key1", "data1" }, { "key2", 13 } }, 1753yield return new object[] { new RouteValueDictionary() }; 1754yield return new object[] { new RouteValueDictionary() { { "tokenKeyA", "tokenValueA" } } }; 1801new RouteValueDictionary(defaults), 1802new RouteValueDictionary(constraints), 1803new RouteValueDictionary(dataTokens), 1812new RouteValueDictionary(), 1827new RouteValueDictionary(defaults),
RouteValuesAddressSchemeTest.cs (14)
169ExplicitValues = new RouteValueDictionary(new { id = 8 }), 170AmbientValues = new RouteValueDictionary(new { urgent = false }), 194ExplicitValues = new RouteValueDictionary(new { id = 7 }), 195AmbientValues = new RouteValueDictionary(new { zipCode = 3500 }), 225ExplicitValues = new RouteValueDictionary(new { id = 12 }), 226AmbientValues = new RouteValueDictionary(new { zipCode = 3500 }), 251ExplicitValues = new RouteValueDictionary(new { id = 7 }), 252AmbientValues = new RouteValueDictionary(new { zipCode = 3500 }), 275ExplicitValues = new RouteValueDictionary(new { id = 10 }), 276AmbientValues = new RouteValueDictionary(new { controller = "Home", action = "Index" }), 299ExplicitValues = new RouteValueDictionary(new { id = 10 }), 300AmbientValues = new RouteValueDictionary(new { controller = "Orders", action = "GetById" }), 327ExplicitValues = new RouteValueDictionary(), 328AmbientValues = new RouteValueDictionary(),
Template\TemplateBinderTests.cs (155)
19new RouteValueDictionary(new {val1 = "", val2 = ""}), 20new RouteValueDictionary(new {val2 = "SomeVal2"}), 25new RouteValueDictionary(new {val1 = "", val2 = ""}), 26new RouteValueDictionary(new {val1 = "a"}), 31new RouteValueDictionary(new {val1 = "", val3 = ""}), 32new RouteValueDictionary(new {val2 = "a"}), 37new RouteValueDictionary(new {val1 = "", val2 = ""}), 38new RouteValueDictionary(new {val1 = "a", val2 = "b"}), 43new RouteValueDictionary(new {val1 = "", val2 = "", val3 = ""}), 44new RouteValueDictionary(new {val1 = "a", val2 = "b", val3 = "c"}), 49new RouteValueDictionary(new {val1 = "", val2 = "", val3 = ""}), 50new RouteValueDictionary(new {val1 = "a", val2 = "b"}), 55new RouteValueDictionary(new {val1 = "", val2 = "", val3 = ""}), 56new RouteValueDictionary(new {val1 = "a"}), 61new RouteValueDictionary(new {val1 = "42", val2 = "", val3 = ""}), 62new RouteValueDictionary(), 67new RouteValueDictionary(new {val1 = "42", val2 = (string)null, val3 = (string)null}), 68new RouteValueDictionary(), 73new RouteValueDictionary(new {val1 = "21", val2 = "", val3 = "", val4 = ""}), 74new RouteValueDictionary(new {val1 = "42", val2 = "11", val3 = "", val4 = ""}), 79new RouteValueDictionary(new {val1 = "21", val2 = "", val3 = ""}), 80new RouteValueDictionary(new {val1 = "42"}), 85new RouteValueDictionary(new {val1 = "21", val2 = "", val3 = "", val4 = ""}), 86new RouteValueDictionary(new {val1 = "42", val2 = "11"}), 91new RouteValueDictionary(new {val1 = "21", val2 = (string)null, val3 = (string)null}), 92new RouteValueDictionary(new {val1 = "42"}), 97new RouteValueDictionary(new {val1 = "21", val2 = (string)null, val3 = (string)null, val4 = (string)null}), 98new RouteValueDictionary(new {val1 = "42", val2 = "11"}), 150new RouteValueDictionary(new { lang = "en", region = "US" }), 151new RouteValueDictionary(new { lang = "xx", region = "yy" }), 161new RouteValueDictionary(new { lang = "en", region = "US" }), 162new RouteValueDictionary(new { lang = "xx", region = "yy" }), 172new RouteValueDictionary(new { lang = "en", region = "US" }), 173new RouteValueDictionary(new { lang = "xx", region = "yy" }), 185new RouteValueDictionary(new {val1 = "someval1", val2 = "someval2"}), 186new RouteValueDictionary(new {val3 = "someval3"}), 187new RouteValueDictionary(new {val3 = "someval3"}), 192new RouteValueDictionary(new {val1 = "someval1", val2 = "someval2"}), 193new RouteValueDictionary(new {val3 = "someval3a"}), 194new RouteValueDictionary(new {val3 = "someval3v"}), 199new RouteValueDictionary(new {val1 = "someval1", val2 = "someval2"}), 200new RouteValueDictionary(new {val3 = "someval3a"}), 201new RouteValueDictionary(), 206new RouteValueDictionary(new {val1 = "someval1", val2 = "someval2"}), 207new RouteValueDictionary(), 208new RouteValueDictionary(new {val3 = "someval3v"}), 213new RouteValueDictionary(new {val1 = "someval1", val2 = "someval2"}), 214new RouteValueDictionary(), 215new RouteValueDictionary(), 220new RouteValueDictionary(new {val1 = "someval1", val2 = "someval2" }), 221new RouteValueDictionary(), 222new RouteValueDictionary(new {val4 = "someval4", val3 = "someval3" }), 228new RouteValueDictionary(new {val1 = "someval1", val2 = "someval2" }), 229new RouteValueDictionary(), 230new RouteValueDictionary(new {val3 = "someval3" }), 236new RouteValueDictionary(new { }), 237new RouteValueDictionary(), 238new RouteValueDictionary(new {val2 = "someval2" }), 243new RouteValueDictionary(new {val1 = "someval1", val2 = "someval2" }), 244new RouteValueDictionary(), 245new RouteValueDictionary(new {val3 = "someval3" }), 299new RouteValueDictionary(new { lang = "en", region = "US" }), 300new RouteValueDictionary(new { lang = "xx", region = "yy" }), 310new RouteValueDictionary(new { lang = "en", region = "US" }), 311new RouteValueDictionary(new { lang = "", region = "yy" }), 321new RouteValueDictionary(new { lang = "en", region = "US" }), 322new RouteValueDictionary(new { lang = "xx", region = "" }), 332new RouteValueDictionary(new { lang = "en" }), 333new RouteValueDictionary(new { lang = "xx" }), 343new RouteValueDictionary(new { lang = "en" }), 344new RouteValueDictionary(new { lang = "xx" }), 354new RouteValueDictionary(new { lang = "en" }), 355new RouteValueDictionary(new { lang = "xx" }), 365new RouteValueDictionary(new { lang = "en" }), 366new RouteValueDictionary(new { lang = "xx" }), 375new RouteValueDictionary(new { action = "Index", id = (string)null }), 376new RouteValueDictionary(new { controller = "home", action = "list", id = (string)null }), 377new RouteValueDictionary(new { controller = "products" }), 386new RouteValueDictionary(new { lang = "xx", region = "yy" }), 387new RouteValueDictionary(new { lang = "en", region = "US" }), 388new RouteValueDictionary(new { lang = "zz" }), 398new RouteValueDictionary(new { id = "defaultid" }), 399new RouteValueDictionary(new { controller = "home", action = "oldaction" }), 400new RouteValueDictionary(new { action = "newaction" }), 410new RouteValueDictionary(new { }), 411new RouteValueDictionary(new { controller = "" }), 421new RouteValueDictionary(new { }), 422new RouteValueDictionary(new { controller = (string)null }), 432new RouteValueDictionary(new { }), 433new RouteValueDictionary(new { controller = "home" }), 443new RouteValueDictionary(new { id = (string)null }), 444new RouteValueDictionary(new { controller = "home", action = "oldaction", id = (string)null }), 445new RouteValueDictionary(new { action = "newaction" }), 454new RouteValueDictionary(new { language = "en", locale = "US" }), 455new RouteValueDictionary(), 456new RouteValueDictionary(new { controller = "Orders" }), 465new RouteValueDictionary(new { action = "Index", id = "" }), 466new RouteValueDictionary(new { controller = "Home", action = "Index", id = "" }), 467new RouteValueDictionary(new { controller = "Home", action = "TestAction", id = "1", format = (string)null }), 530var ambientValues = new RouteValueDictionary(); 538var values = new RouteValueDictionary(); 544new RouteValueDictionary(new { year = 1995, occasion = "Christmas", action = "Play", SafeParam = "SafeParamValue" }), 554var ambientValues = new RouteValueDictionary(); 561var values = new RouteValueDictionary(); 567new RouteValueDictionary(new { action = "Default" }), 576var values = new RouteValueDictionary(); 585new RouteValueDictionary(new { controller = "Home" }), 586new RouteValueDictionary(new { controller = "home", action = "Index", id = (string)null }), 594var values = new RouteValueDictionary(new { controller = "products", action = "showcategory", id = 123, maxPrice = 100 }); 599new RouteValueDictionary(new { controller = "Home" }), 600new RouteValueDictionary(new { controller = "home", action = "Index", id = (string)null }), 611new RouteValueDictionary(new { controller = "Home", Custom = "customValue" }), 612new RouteValueDictionary(new { controller = "Home", action = "Index", id = (string)null }), 613new RouteValueDictionary( 633new RouteValueDictionary(new { controller = "ho%me", action = "li st" }), 634new RouteValueDictionary(), 644new RouteValueDictionary(new { controller = "/home", action = "/my/index" }), 645new RouteValueDictionary(), 654new RouteValueDictionary(new { id = "defaultid" }), 655new RouteValueDictionary(new { p1 = "v1" }), 656new RouteValueDictionary(new { p2 = "v2a/v2b" }), 665new RouteValueDictionary(new { id = "defaultid" }), 666new RouteValueDictionary(new { p1 = "v1" }), 667new RouteValueDictionary(new { p2 = "" }), 676new RouteValueDictionary(new { id = "defaultid" }), 677new RouteValueDictionary(new { p1 = "v1" }), 678new RouteValueDictionary(new { p2 = (string)null }), 689new RouteValueDictionary(new { }), 700new RouteValueDictionary(new { }), 714var ambientValues = new RouteValueDictionary(); 715var routeValues = new RouteValueDictionary(new { controller = "Test", action = "Index" }); 1200new RouteValueDictionary(defaults), 1201new RouteValueDictionary(ambientValues), 1202new RouteValueDictionary(values), 1233var defaults = new RouteValueDictionary(new { controller = "Home", action = "Index", area = (string)null }); 1234var ambientValues = new RouteValueDictionary(new { controller = "Rail", action = "Schedule", area = "Travel" }); 1235var explicitValues = new RouteValueDictionary(new { controller = "Home", action = "Index", area = "" }); 1262var defaults = new RouteValueDictionary(new { controller = "Home", action = "Index", area = "" }); 1263var ambientValues = new RouteValueDictionary(new { controller = "Rail", action = "Schedule", area = "Travel" }); 1264var explicitValues = new RouteValueDictionary(new { controller = "Home", action = "Index", area = (string)null }); 1292var defaults = new RouteValueDictionary(new { controller = "ConventionalTransformer", action = "Param" }); 1293var ambientValues = new RouteValueDictionary(new { controller = "ConventionalTransformer", action = "Param" }); 1294var explicitValues = new RouteValueDictionary(new { controller = "ConventionalTransformer", action = "Param", param = "MyValue" }); 1322var defaults = new RouteValueDictionary(new { action = "Index" }); 1323var ambientValues = new RouteValueDictionary(new { area = "Travel", controller = "Rail", action = "Index" }); 1324var explicitValues = new RouteValueDictionary(new { controller = "Flight", action = "Index" }); 1352var defaults = new RouteValueDictionary(); 1353var ambientValues = new RouteValueDictionary(new { page = "/LGAnotherPage", id = "17" }); 1354var explicitValues = new RouteValueDictionary(new { controller = "LG2", action = "SomeAction" }); 1386var defaults = new RouteValueDictionary(); 1387var ambientValues = new RouteValueDictionary(new { area = "Admin", page = "/LGAnotherPage", id = "17" }); 1388var explicitValues = new RouteValueDictionary(new { controller = "LG2", action = "SomeAction" }); 1416var defaults = new RouteValueDictionary(new { controller = "LG3", action = "SomeAction", area = "Admin" }); 1417var ambientValues = new RouteValueDictionary(new { controller = "LG1", action = "LinkToAnArea", id = "17" }); 1418var explicitValues = new RouteValueDictionary(new { controller = "LG3", area = "Admin", action = "SomeAction", anothervalue = "5" });
Template\TemplateMatcherTests.cs (72)
16var values = new RouteValueDictionary(); 34var values = new RouteValueDictionary(); 49var values = new RouteValueDictionary(); 67var values = new RouteValueDictionary(); 82var values = new RouteValueDictionary(); 99var values = new RouteValueDictionary(); 122var values = new RouteValueDictionary(); 155var values = new RouteValueDictionary(); 190var values = new RouteValueDictionary(); 228var values = new RouteValueDictionary(); 243var values = new RouteValueDictionary(); 259var values = new RouteValueDictionary(); 274var values = new RouteValueDictionary(); 290var values = new RouteValueDictionary(); 306var values = new RouteValueDictionary(); 323var values = new RouteValueDictionary(); 338var values = new RouteValueDictionary(); 353var values = new RouteValueDictionary(); 375var values = new RouteValueDictionary(); 390var values = new RouteValueDictionary(); 411var values = new RouteValueDictionary(); 433new RouteValueDictionary(new { lang = "en", region = "US" })); 443new RouteValueDictionary(new { lang = "en", region = "US" })); 453new RouteValueDictionary(new { lang = "en", region = "US" })); 463new RouteValueDictionary(new { lang = "en", region = "US" })); 493new RouteValueDictionary(new { lang = "en" })); 523new RouteValueDictionary(new { lang = "en" })); 533new RouteValueDictionary(new { lang = "en" })); 543new RouteValueDictionary(new { lang = "en" })); 552new RouteValueDictionary(new { action = "Index", id = (string)null }), 553new RouteValueDictionary(new { controller = "home", action = "index", id = (string)null })); 562new RouteValueDictionary(new { lang = "xx", region = "yy" }), 573new RouteValueDictionary(new { Controller = "Home", id = "123", Param1 = "p1" })); 583new RouteValueDictionary(new { Controller = "Home", action = "index" })); 593new RouteValueDictionary(new { Controller = "Home", action = "index" })); 603new RouteValueDictionary(new { Controller = "Home", action = "index" })); 613new RouteValueDictionary(new { Controller = "Home", action = "index" })); 623new RouteValueDictionary(new { Controller = "Home" })); 633new RouteValueDictionary(new { Controller = "Home" })); 643new RouteValueDictionary(new { Controller = "Home", id = "123", Param1 = "p1" })); 653new RouteValueDictionary()); 663new RouteValueDictionary()); 673new RouteValueDictionary()); 683new RouteValueDictionary(new 690new RouteValueDictionary(new { controller = "Home", action = "ShowPilot", missionId = "777", name = "12345./foobar" })); 699var values = new RouteValueDictionary(); 717var values = new RouteValueDictionary(); 735var values = new RouteValueDictionary(); 753var values = new RouteValueDictionary(new { p2 = "hello" }); 771var values = new RouteValueDictionary(new { p2 = "overridden" }); 789var values = new RouteValueDictionary(new { p2 = "overridden" }); 842new RouteValueDictionary()); 851new RouteValueDictionary() { { " ", "not a space" }, { "op.tional", "default value" }, { "ran!dom", "va@lue" } }, 852new RouteValueDictionary() { { " ", "space" }, { ".!$%", "weimatch" }, { "dynamic.data", "omatcherid" }, { "op.tional", "default value" }, { "ran!dom", "va@lue" } }); 861new RouteValueDictionary(new { language = "en", locale = "US" }), 871new RouteValueDictionary(new { language = "en", locale = "US" }), 881new RouteValueDictionary(new { language = "en", locale = "US" }), 891new RouteValueDictionary(new { language = "en", locale = "US" }), 892new RouteValueDictionary { { "language", "xx" }, { "locale", "yy" }, { "controller", "foo" } }); 902var values = new RouteValueDictionary(); 921var values = new RouteValueDictionary(); 940var values = new RouteValueDictionary(); 958var values = new RouteValueDictionary(); 975var values = new RouteValueDictionary(); 1000var values = new RouteValueDictionary(); 1023var values = new RouteValueDictionary(); 1046var values = new RouteValueDictionary(); 1063var values = new RouteValueDictionary(); 1080var values = new RouteValueDictionary(); 1093new RouteValueDictionary(defaults)); 1105defaults ?? new RouteValueDictionary()); 1107var values = new RouteValueDictionary();
TestObjects\CapturingConstraint.cs (1)
19Values = new RouteValueDictionary(values);
TestObjects\TestMatcher.cs (1)
20c.Request.RouteValues = new RouteValueDictionary(new { controller = "Home", action = "Index" });
Tree\LinkGenerationDecisionTreeTest.cs (3)
745match.Entry.RequiredLinkValues = new RouteValueDictionary(requiredValues); 759new RouteValueDictionary(ambientValues), 760new RouteValueDictionary(values));
Tree\TreeRouteBuilderTest.cs (4)
27new RouteValueDictionary(), 34new RouteValueDictionary(), 54new RouteValueDictionary(), 61new RouteValueDictionary(),
Tree\TreeRouterTest.cs (11)
141var expectedRouteValues = new RouteValueDictionary(); 193var expectedRouteValues = new RouteValueDictionary(); 236var expectedRouteValues = new RouteValueDictionary(); 1747nestedValues = new RouteValueDictionary(c.RouteData.Values); 1762var originalValues = new RouteValueDictionary(context.RouteData.Values); 1784nestedValues = new RouteValueDictionary(c.RouteData.Values); 1828nestedValues = new RouteValueDictionary(c.RouteData.Values); 1874nestedValues = new RouteValueDictionary(c.RouteData.Values); 2009new RouteValueDictionary(ambientValues), 2010new RouteValueDictionary(values), 2043requiredLinkValues: new RouteValueDictionary(requiredValues),
Microsoft.AspNetCore.Server.Kestrel.Core (1)
Internal\Http\HttpProtocol.FeatureCollection.cs (1)
238get => _routeValues ??= new RouteValueDictionary();
Microsoft.AspNetCore.StaticAssets (1)
Development\StaticAssetDevelopmentRuntimeHandler.cs (1)
236new RouteValueDictionary { ["path"] = new FileExistsConstraint(environment) });
Mvc.RoutingWebSite (5)
Controllers\LG1Controller.cs (1)
130return new RouteValueDictionary(query.ToDictionary(kvp => kvp.Key, kvp => kvp.Value.ToString()));
StartupForDynamic.cs (1)
53var results = new RouteValueDictionary();
StartupForDynamicAndRazorPages.cs (1)
44var results = new RouteValueDictionary();
StartupForDynamicOrder.cs (1)
96var results = new RouteValueDictionary();
StartupRoutingDifferentBranches.cs (1)
95return new ValueTask<RouteValueDictionary>(new RouteValueDictionary(new { controller = "Branches", action = "Index" }));
969 references to RouteValueDictionary
Microsoft.AspNetCore.Diagnostics (5)
DeveloperExceptionPage\DeveloperExceptionPageMiddlewareImpl.cs (2)
394public ExceptionExtensionData(string details, IHeaderDictionary headers, string path, string? endpoint, RouteValueDictionary? routeValues) 407public RouteValueDictionary? RouteValues { get; }
DeveloperExceptionPage\Views\ErrorPageModel.cs (1)
47public RouteValueDictionary RouteValues { get; set; }
ExceptionHandler\ExceptionHandlerFeature.cs (1)
24public RouteValueDictionary? RouteValues { get; set; }
StatusCodePage\StatusCodeReExecuteFeature.cs (1)
28public RouteValueDictionary? RouteValues { get; set; }
Microsoft.AspNetCore.Diagnostics.Abstractions (4)
IExceptionHandlerFeature.cs (2)
31/// Gets the <see cref="RouteValueDictionary"/> associated with the original request. 33RouteValueDictionary? RouteValues => null;
IStatusCodeReExecuteFeature.cs (2)
42/// Gets the <see cref="RouteValueDictionary"/> associated with the original request. 44RouteValueDictionary? RouteValues => null;
Microsoft.AspNetCore.Http (4)
Features\RouteValuesFeature.cs (3)
14private RouteValueDictionary? _routeValues; 17/// Gets or sets the <see cref="RouteValueDictionary"/> associated with the currrent 20public RouteValueDictionary RouteValues
Internal\DefaultHttpRequest.cs (1)
166public override RouteValueDictionary RouteValues
Microsoft.AspNetCore.Http.Abstractions (26)
HttpRequest.cs (2)
153public virtual RouteValueDictionary RouteValues { get; set; } = null!; 179public RouteValueDictionary RouteValues => _request.RouteValues;
Routing\IRouteValuesFeature.cs (2)
15/// Gets or sets the <see cref="RouteValueDictionary"/> associated with the current 18RouteValueDictionary RouteValues { get; set; }
Routing\RouteValueDictionary.cs (22)
19[assembly: MetadataUpdateHandler(typeof(RouteValueDictionary.MetadataUpdateHandler))] 55/// Creates a new <see cref="RouteValueDictionary"/> from the provided array. 59/// <returns>A new <see cref="RouteValueDictionary"/>.</returns> 60public static RouteValueDictionary FromArray(KeyValuePair<string, object?>[] items) 104/// Creates an empty <see cref="RouteValueDictionary"/>. 113/// Creates a <see cref="RouteValueDictionary"/> initialized with the specified <paramref name="values"/>. 128if (values is RouteValueDictionary dictionary) 164/// Creates a <see cref="RouteValueDictionary"/> initialized with the specified <paramref name="values"/>. 181/// Creates a <see cref="RouteValueDictionary"/> initialized with the specified <paramref name="values"/>. 197/// Creates a <see cref="RouteValueDictionary"/> initialized with the specified <paramref name="dictionary"/>. 199/// <param name="dictionary">A <see cref="RouteValueDictionary"/> to initialize the dictionary.</param> 200public RouteValueDictionary(RouteValueDictionary? dictionary) 236private void Initialize(RouteValueDictionary dictionary) 378var message = Resources.FormatRouteValueDictionary_DuplicateKey(key, nameof(RouteValueDictionary)); 540/// Attempts to remove and return the value that has the specified key from the <see cref="RouteValueDictionary"/>. 543/// <param name="value">When this method returns, contains the object removed from the <see cref="RouteValueDictionary"/>, or <c>null</c> if key does not exist.</param> 792private readonly RouteValueDictionary _dictionary; 798/// <param name="dictionary">A <see cref="RouteValueDictionary"/>.</param> 799public Enumerator(RouteValueDictionary dictionary) 826var dictionary = _dictionary; 853var dictionary = _dictionary; 913nameof(RouteValueDictionary));
Microsoft.AspNetCore.Http.Abstractions.Tests (129)
RouteValueDictionaryTests.cs (129)
15var dict = new RouteValueDictionary(); 28var dict = new RouteValueDictionary(values: (object?)null); 40var other = new RouteValueDictionary() 46var dict = new RouteValueDictionary(other); 62var other = new RouteValueDictionary(new { key = "value" }); 65var dict = new RouteValueDictionary(other); 119var dict = new RouteValueDictionary(values); 141var dict = new RouteValueDictionary(values); 166$"An element with the key 'Name' already exists in the {nameof(RouteValueDictionary)}."); 183$"An element with the key 'Name' already exists in the {nameof(RouteValueDictionary)}."); 193var dict = new RouteValueDictionary(obj); 210var dict = new RouteValueDictionary(obj); 236var dict = new RouteValueDictionary(obj); 257var dict = new RouteValueDictionary(obj); 272var dict = new RouteValueDictionary(obj); 287var dict = new RouteValueDictionary(obj); 315var dict = new RouteValueDictionary(obj); 332var dict = new RouteValueDictionary(obj); 348$"only by casing. This is not supported by {nameof(RouteValueDictionary)} which uses " + 354var dictionary = new RouteValueDictionary(obj); 368var dict = new RouteValueDictionary(obj); 386var dict = new RouteValueDictionary(obj); 404var dict = new RouteValueDictionary(obj); 418var dict = new RouteValueDictionary(); 429var dict = new RouteValueDictionary(); 442var dict = new RouteValueDictionary(); 455var dict = new RouteValueDictionary(); 468var dict = new RouteValueDictionary(new { age = 30 }); 482var dict = new RouteValueDictionary(new { key = "value" }); 496var dict = new RouteValueDictionary(new { key = "value" }); 510var dict = new RouteValueDictionary() 527var dict = new RouteValueDictionary() 544var dict = new RouteValueDictionary() 561var dict = new RouteValueDictionary(); 574var dict = new RouteValueDictionary(); 588var dict = new RouteValueDictionary(new { age = 30 }); 605var dict = new RouteValueDictionary(new { key = "value" }); 619var dict = new RouteValueDictionary(new { key = "value" }); 633var dict = new RouteValueDictionary() 653var dict = new RouteValueDictionary() 670var dict = new RouteValueDictionary() 687var dict = new RouteValueDictionary(); 700var dict = new RouteValueDictionary(new { key = "value", }); 714var dict = new RouteValueDictionary() 731var dict = new RouteValueDictionary(); 745var dict = new RouteValueDictionary(new { key = "value", }); 759var dict = new RouteValueDictionary() 776var dict = new RouteValueDictionary(); 790var dict = new RouteValueDictionary(new { key = "value", }); 804var dict = new RouteValueDictionary() 821var dict = new RouteValueDictionary(); 835var dict = new RouteValueDictionary(); 848var dict = new RouteValueDictionary(new { age = 30 }); 873var dict = new RouteValueDictionary() 893var dict = new RouteValueDictionary() 898var message = $"An element with the key 'key' already exists in the {nameof(RouteValueDictionary)}"; 914var dict = new RouteValueDictionary() 919var message = $"An element with the key 'kEy' already exists in the {nameof(RouteValueDictionary)}"; 935var dict = new RouteValueDictionary() 955var dict = new RouteValueDictionary(); 968var dict = new RouteValueDictionary(new { }); 983var dict = new RouteValueDictionary(new { key = "value" }); 998var dict = new RouteValueDictionary() 1016var dict = new RouteValueDictionary() 1035var dict = new RouteValueDictionary() 1054var dict = new RouteValueDictionary() 1074var dict = new RouteValueDictionary() 1093var dict = new RouteValueDictionary(new { key = "value" }); 1113var dict = new RouteValueDictionary(new { key = "value" }); 1133var dict = new RouteValueDictionary(new { key = "value" }); 1154var dict = new RouteValueDictionary(new { key = "value" }); 1174var dict = new RouteValueDictionary(); 1187var dict = new RouteValueDictionary(); 1200var dict = new RouteValueDictionary(new { key = "value" }); 1215var dict = new RouteValueDictionary(new { key = "value" }); 1230var dict = new RouteValueDictionary(new { key = "value" }); 1245var dict = new RouteValueDictionary() 1262var dict = new RouteValueDictionary() 1279var dict = new RouteValueDictionary() 1296var dict = new RouteValueDictionary() 1321var dict = new RouteValueDictionary() 1341var dict = new RouteValueDictionary() 1361var dict = new RouteValueDictionary() 1382var dict = new RouteValueDictionary() 1402var dict = new RouteValueDictionary(); 1415var dict = new RouteValueDictionary(); 1428var dict = new RouteValueDictionary(new { }); 1443var dict = new RouteValueDictionary(new { key = "value" }); 1458var dict = new RouteValueDictionary(new { key = "value" }); 1473var dict = new RouteValueDictionary(new { key = "value" }); 1488var dict = new RouteValueDictionary() 1506var dict = new RouteValueDictionary() 1524var dict = new RouteValueDictionary() 1542var dict = new RouteValueDictionary(); 1556var dict = new RouteValueDictionary(); 1570var dict = new RouteValueDictionary(new { }); 1586var dict = new RouteValueDictionary(new { key = "value" }); 1603var dict = new RouteValueDictionary(new { key = value }); 1620var dict = new RouteValueDictionary(new { key = value }); 1636var dict = new RouteValueDictionary() 1656var dict = new RouteValueDictionary() 1676var dict = new RouteValueDictionary() 1696var dict = new RouteValueDictionary() 1721var dict = new RouteValueDictionary() 1746var dict = new RouteValueDictionary() 1770var dict = new RouteValueDictionary(); 1783var dict = new RouteValueDictionary(new { key = "value", }); 1803var dict = new RouteValueDictionary(new { key = "value", }); 1821var dict = new RouteValueDictionary(); 1840var dict = new RouteValueDictionary() 1862var dict = new RouteValueDictionary() 1891var dict = new RouteValueDictionary() 1913var dict = new RouteValueDictionary(); 1927var dict = new RouteValueDictionary(); 1941var dict = new RouteValueDictionary(new { key = "value" }); 1956var dict = new RouteValueDictionary(new { key = "value" }); 1971var dict = new RouteValueDictionary(new { key = "value" }); 1986var dict = new RouteValueDictionary() 2004var dict = new RouteValueDictionary() 2022var dict = new RouteValueDictionary() 2040var dict = new RouteValueDictionary(); 2064var dict = new RouteValueDictionary(); 2096var dictionary = RouteValueDictionary.FromArray(array); 2113var dictionary = RouteValueDictionary.FromArray(array); 2136var dictionary = RouteValueDictionary.FromArray(array); 2155private void AssertEmptyArrayStorage(RouteValueDictionary value)
Microsoft.AspNetCore.Http.Extensions (1)
RequestDelegateFactory.cs (1)
68private static readonly PropertyInfo RouteValuesIndexerProperty = typeof(RouteValueDictionary).GetProperty("Item")!;
Microsoft.AspNetCore.Http.Microbenchmarks (40)
RouteValueDictionaryBenchmark.cs (40)
10private RouteValueDictionary _arrayValues; 11private RouteValueDictionary _propertyValues; 12private RouteValueDictionary _arrayValuesEmpty; 35public RouteValueDictionary Ctor_Values_RouteValueDictionary_Array() 41public RouteValueDictionary AddSingleItem() 43var dictionary = new RouteValueDictionary 51public RouteValueDictionary AddThreeItems() 53var dictionary = new RouteValueDictionary 89var propertyValues = new RouteValueDictionary(new { action = "Index", controller = "Home", id = "17", area = "root" }); 96var propertyValues = new RouteValueDictionary(new { action = "Index", controller = "Home", id = "17", area = "root" }); 103var propertyValues = new RouteValueDictionary(new { action = "Index", controller = "Home", id = "17" }); 110var propertyValues = new RouteValueDictionary(new { action = "Index", controller = "Home", id = "17" }); 117var arrayValues = new RouteValueDictionary 130var arrayValues = new RouteValueDictionary 143var arrayValues = new RouteValueDictionary 155var arrayValues = new RouteValueDictionary 167var arrayValues = new RouteValueDictionary() 183var propertyValues = new RouteValueDictionary(new { action = "Index", controller = "Home", id = "17" }); 192public RouteValueDictionary ConditionalAdd_ContainsKey_Array() 194var dictionary = _arrayValues; 215public RouteValueDictionary ConditionalAdd_TryAdd() 217var dictionary = _arrayValues; 227public RouteValueDictionary ForEachThreeItems_Array() 229var dictionary = _arrayValues; 238public RouteValueDictionary ForEachThreeItems_Properties() 240var dictionary = _propertyValues; 249public RouteValueDictionary GetThreeItems_Array() 251var dictionary = _arrayValues; 259public RouteValueDictionary GetThreeItems_Properties() 261var dictionary = _propertyValues; 269public RouteValueDictionary SetSingleItem() 271var dictionary = new RouteValueDictionary 279public RouteValueDictionary SetExistingItem() 281var dictionary = _arrayValues; 287public RouteValueDictionary SetThreeItems() 289var dictionary = new RouteValueDictionary 299public RouteValueDictionary TryGetValueThreeItems_Array() 301var dictionary = _arrayValues; 312public RouteValueDictionary TryGetValueThreeItems_Properties() 314var dictionary = _propertyValues;
Microsoft.AspNetCore.Http.Results (20)
AcceptedAtRoute.cs (2)
53RouteValueDictionary? routeValues) 67public RouteValueDictionary RouteValues { get; }
AcceptedAtRouteOfT.cs (2)
57RouteValueDictionary? routeValues, 81public RouteValueDictionary RouteValues { get; }
CreatedAtRoute.cs (2)
53RouteValueDictionary? routeValues) 67public RouteValueDictionary RouteValues { get; }
CreatedAtRouteOfT.cs (2)
57RouteValueDictionary? routeValues, 81public RouteValueDictionary RouteValues { get; }
RedirectToRouteHttpResult.cs (2)
119RouteValueDictionary? routeValues, 139public RouteValueDictionary RouteValues { get; }
Results.cs (5)
583public static IResult RedirectToRoute(string? routeName, RouteValueDictionary? routeValues, bool permanent = false, bool preserveMethod = false, string? fragment = null) 890public static IResult CreatedAtRoute(string? routeName, RouteValueDictionary? routeValues, object? value = null) 913public static IResult CreatedAtRoute<TValue>(string? routeName, RouteValueDictionary? routeValues, TValue? value = default) 954public static IResult AcceptedAtRoute(string? routeName, RouteValueDictionary? routeValues, object? value = null) 977public static IResult AcceptedAtRoute<TValue>(string? routeName, RouteValueDictionary? routeValues, TValue? value = default)
TypedResults.cs (5)
634public static RedirectToRouteHttpResult RedirectToRoute(string? routeName, RouteValueDictionary? routeValues, bool permanent = false, bool preserveMethod = false, string? fragment = null) 953public static CreatedAtRoute CreatedAtRoute(string? routeName, RouteValueDictionary? routeValues) 978public static CreatedAtRoute<TValue> CreatedAtRoute<TValue>(TValue? value, string? routeName, RouteValueDictionary? routeValues) 1043public static AcceptedAtRoute AcceptedAtRoute(string? routeName, RouteValueDictionary? routeValues) 1068public static AcceptedAtRoute<TValue> AcceptedAtRoute<TValue>(TValue? value, string? routeName, RouteValueDictionary? routeValues)
Microsoft.AspNetCore.Http.Results.Tests (17)
AcceptedAtRouteOfTResultTests.cs (5)
21var routeValues = new RouteValueDictionary(new Dictionary<string, string>() 45var routeValues = new RouteValueDictionary(new Dictionary<string, string>() 162var routeValues = new RouteValueDictionary(new Dictionary<string, string>() 177var routeValues = new RouteValueDictionary(new Dictionary<string, string>() 194var routeValues = new RouteValueDictionary(new Dictionary<string, string>()
CreatedAtRouteOfTResultTests.cs (1)
22var routeValues = new RouteValueDictionary(new Dictionary<string, string>()
ResultsTests.cs (5)
103var routeValues = new RouteValueDictionary { ["foo"] = 123 }; 153var routeValues = new RouteValueDictionary { ["foo"] = 123 }; 767var routeValues = new RouteValueDictionary { ["foo"] = 123 }; 831var routeValues = new RouteValueDictionary { ["foo"] = 123 }; 1541var routeValues = new RouteValueDictionary { ["foo"] = 123 };
TestLinkGenerator.cs (6)
13public override string GetPathByAddress<TAddress>(HttpContext httpContext, TAddress address, RouteValueDictionary values, RouteValueDictionary ambientValues = null, PathString? pathBase = null, FragmentString fragment = default, LinkOptions options = null) 18public override string GetPathByAddress<TAddress>(TAddress address, RouteValueDictionary values, PathString pathBase = default, FragmentString fragment = default, LinkOptions options = null) 23public override string GetUriByAddress<TAddress>(HttpContext httpContext, TAddress address, RouteValueDictionary values, RouteValueDictionary ambientValues = null, string scheme = null, HostString? host = null, PathString? pathBase = null, FragmentString fragment = default, LinkOptions options = null) 26public override string GetUriByAddress<TAddress>(TAddress address, RouteValueDictionary values, string scheme, HostString host, PathString pathBase = default, FragmentString fragment = default, LinkOptions options = null)
Microsoft.AspNetCore.Http.Tests (1)
Internal\DefaultHttpRequestTests.cs (1)
343public RouteValueDictionary RouteValues { get; set; }
Microsoft.AspNetCore.Identity (1)
IdentityApiEndpointRouteBuilderExtensions.cs (1)
403var routeValues = new RouteValueDictionary()
Microsoft.AspNetCore.Mvc.Core (73)
AcceptedAtActionResult.cs (1)
60public RouteValueDictionary? RouteValues { get; set; }
AcceptedAtRouteResult.cs (1)
63public RouteValueDictionary? RouteValues { get; set; }
Builder\ControllerEndpointRouteBuilderExtensions.cs (2)
155var defaultsDictionary = new RouteValueDictionary(defaults); 158var constraintsDictionary = new RouteValueDictionary(constraints);
Builder\MvcAreaRouteBuilderExtensions.cs (2)
123var defaultsDictionary = new RouteValueDictionary(defaults); 126var constraintsDictionary = new RouteValueDictionary(constraints);
CreatedAtActionResult.cs (1)
60public RouteValueDictionary? RouteValues { get; set; }
CreatedAtRouteResult.cs (1)
63public RouteValueDictionary? RouteValues { get; set; }
Infrastructure\ActionSelectionTable.cs (1)
162public IReadOnlyList<TItem> Select(RouteValueDictionary values)
ModelBinding\RouteValueProvider.cs (4)
12/// An <see cref="IValueProvider"/> adapter for data stored in an <see cref="RouteValueDictionary"/>. 16private readonly RouteValueDictionary _values; 27RouteValueDictionary values) 38public RouteValueProvider(BindingSource bindingSource, RouteValueDictionary values, CultureInfo culture)
RedirectToActionResult.cs (1)
149public RouteValueDictionary? RouteValues { get; set; }
RedirectToPageResult.cs (1)
177public RouteValueDictionary? RouteValues { get; set; }
RedirectToRouteResult.cs (1)
141public RouteValueDictionary? RouteValues { get; set; }
Routing\ActionEndpointFactory.cs (4)
189var requiredValues = new RouteValueDictionary(); 278RouteValueDictionary? updatedDefaults = null; 333RouteValueDictionary? dataTokens, 500private RequestDelegate? CreateRequestDelegate(ActionDescriptor action, RouteValueDictionary? dataTokens = null)
Routing\AttributeRoute.cs (1)
81var defaults = new RouteValueDictionary();
Routing\ControllerActionEndpointDataSource.cs (2)
52RouteValueDictionary? defaults, 54RouteValueDictionary? dataTokens)
Routing\ControllerLinkGeneratorExtensions.cs (3)
208var explicitValues = new RouteValueDictionary(values); 209var ambientValues = GetAmbientValues(httpContext); 220private static RouteValueDictionary? GetAmbientValues(HttpContext? httpContext)
Routing\ControllerRequestDelegateFactory.cs (1)
60public RequestDelegate? CreateRequestDelegate(ActionDescriptor actionDescriptor, RouteValueDictionary? dataTokens)
Routing\ConventionalRouteEntry.cs (3)
15public readonly RouteValueDictionary? DataTokens; 23RouteValueDictionary? defaults, 25RouteValueDictionary? dataTokens,
Routing\DynamicControllerEndpointMatcherPolicy.cs (3)
77var originalValues = candidates[i].Values!; 79RouteValueDictionary? dynamicValues = null; 133var values = new RouteValueDictionary(dynamicValues);
Routing\DynamicControllerEndpointSelector.cs (1)
23public IReadOnlyList<Endpoint> SelectEndpoints(RouteValueDictionary values)
Routing\DynamicControllerMetadata.cs (2)
10public DynamicControllerMetadata(RouteValueDictionary values) 19public RouteValueDictionary Values { get; }
Routing\DynamicRouteValueTransformer.cs (12)
20/// The route values returned from a <see cref="TransformAsync(HttpContext, RouteValueDictionary)"/> implementation 23/// <see cref="FilterAsync(HttpContext, RouteValueDictionary, IReadOnlyList{Endpoint})" /> as well as 32/// <item><description><see cref="TransformAsync(HttpContext, RouteValueDictionary)"/></description></item> 33/// <item><description><see cref="FilterAsync(HttpContext, RouteValueDictionary, IReadOnlyList{Endpoint})" /></description></item> 62public abstract ValueTask<RouteValueDictionary> TransformAsync(HttpContext httpContext, RouteValueDictionary values); 66/// <see cref="TransformAsync(HttpContext, RouteValueDictionary)" />. 69/// <param name="values">The route values returned from <see cref="TransformAsync(HttpContext, RouteValueDictionary)" />.</param> 72/// <see cref="TransformAsync(HttpContext, RouteValueDictionary)" />. 77/// Implementations of <see cref="FilterAsync(HttpContext, RouteValueDictionary, IReadOnlyList{Endpoint})" /> may further 82/// <see cref="FilterAsync(HttpContext, RouteValueDictionary, IReadOnlyList{Endpoint})" /> will not be called in the case 86public virtual ValueTask<IReadOnlyList<Endpoint>> FilterAsync(HttpContext httpContext, RouteValueDictionary values, IReadOnlyList<Endpoint> endpoints)
Routing\EndpointRoutingUrlHelper.cs (1)
40var values = GetValuesDictionary(urlActionContext.Values);
Routing\IRequestDelegateFactory.cs (1)
15RequestDelegate? CreateRequestDelegate(ActionDescriptor actionDescriptor, RouteValueDictionary? dataTokens);
Routing\KnownRouteValueConstraint.cs (1)
38RouteValueDictionary values,
Routing\PageLinkGeneratorExtensions.cs (3)
208var explicitValues = new RouteValueDictionary(values); 209var ambientValues = GetAmbientValues(httpContext); 220private static RouteValueDictionary? GetAmbientValues(HttpContext? httpContext)
Routing\UrlHelper.cs (5)
55var valuesDictionary = GetValuesDictionary(actionContext.Values); 68var valuesDictionary = routeContext.Values as RouteValueDictionary ?? GetValuesDictionary(routeContext.Values); 80/// The <see cref="RouteValueDictionary"/>. The <see cref="Router"/> uses these values, in combination with 84protected virtual VirtualPathData? GetVirtualPathData(string? routeName, RouteValueDictionary values)
Routing\UrlHelperBase.cs (12)
23private readonly RouteValueDictionary _routeValueDictionary; 39/// Gets the <see cref="RouteValueDictionary"/> associated with the current request. 41protected RouteValueDictionary AmbientValues { get; } 72/// Gets a <see cref="RouteValueDictionary"/> using the specified values. 75/// <returns>A <see cref="RouteValueDictionary"/> with the specified values.</returns> 76protected RouteValueDictionary GetValuesDictionary(object? values) 80if (values is RouteValueDictionary routeValuesDictionary) 228RouteValueDictionary values, 229RouteValueDictionary? ambientValues) 263RouteValueDictionary values, 264RouteValueDictionary? ambientValues) 375private static object CalculatePageName(ActionContext? context, RouteValueDictionary? ambientValues, string pageName)
UrlHelperExtensions.cs (2)
478var routeValues = new RouteValueDictionary(values); 479var ambientValues = urlHelper.ActionContext.RouteData.Values;
Microsoft.AspNetCore.Mvc.Core.Test (89)
AcceptedAtRouteResultTests.cs (1)
62var routeValues = new RouteValueDictionary(new Dictionary<string, string>()
Builder\MvcAreaRouteBuilderExtensionsTest.cs (1)
249var values = new RouteValueDictionary(new { area = areaName });
Infrastructure\ActionSelectionTableTest.cs (15)
43var values = new RouteValueDictionary(new { controller = "Home", action = "Index", }); 80var values = new RouteValueDictionary(new { controller = "Home", action = "Index", }); 120var values = new RouteValueDictionary(new { controller = "Home", action = "Index", }); 158var values = new RouteValueDictionary(new { controller = "Home", action = "Index", }); 193var values = new RouteValueDictionary(new { controller = "Home", action = "Index", }); 228var values = new RouteValueDictionary(new { controller = "Foo", action = "Index", }); 258var values = new RouteValueDictionary(new { controller = "Home", action = "Index", }); 288var values = new RouteValueDictionary(new { controller = "Home", action = "Index", }); 337var values = new RouteValueDictionary(new { controller = "Home", action = "Index", }); 386var values = new RouteValueDictionary(new { controller = "HOME", action = "iNDex", }); 416var values = new RouteValueDictionary(new { area = "", controller = "Home", action = "Index", }); 447var values = new RouteValueDictionary(new { area = "", controller = "HoMe", action = "InDeX", }); 478var values = new RouteValueDictionary(new { area = (string)null, controller = "Home", action = "Index", }); 507var values = new RouteValueDictionary(new { foo = "", controller = "Home", action = "Index", }); 536var values = new RouteValueDictionary(new { foo = (string)null, controller = "Home", action = "Index", });
ModelBinding\RouteValueProviderTests.cs (14)
16var values = new RouteValueDictionary(new Dictionary<string, object> 33var values = new RouteValueDictionary(new Dictionary<string, object> 51var values = new RouteValueDictionary(new Dictionary<string, object> 68var values = new RouteValueDictionary(new Dictionary<string, object> 87var values = new RouteValueDictionary(new Dictionary<string, object> 104var values = new RouteValueDictionary(new Dictionary<string, object> 121var values = new RouteValueDictionary(new Dictionary<string, object> 142var values = new RouteValueDictionary(new Dictionary<string, object> 163var values = new RouteValueDictionary(new Dictionary<string, object> 182var values = new RouteValueDictionary(new Dictionary<string, object> 200var values = new RouteValueDictionary(new Dictionary<string, object> 217var values = new RouteValueDictionary(new Dictionary<string, object> 234var values = new RouteValueDictionary(); 255var values = new RouteValueDictionary();
RedirectToPageResultTest.cs (4)
112Assert.Collection(Assert.IsType<RouteValueDictionary>(context.Values), 166Assert.Collection(Assert.IsType<RouteValueDictionary>(context.Values), 228Assert.Collection(Assert.IsType<RouteValueDictionary>(context.Values), 279Assert.Collection(Assert.IsType<RouteValueDictionary>(context.Values),
Routing\ActionEndpointFactoryTest.cs (4)
267requestDelegateFactory.Setup(m => m.CreateRequestDelegate(action, It.IsAny<RouteValueDictionary>())).Returns(del); 444RouteValueDictionary defaults = null, 446RouteValueDictionary dataTokens = null, 462var routeValues = new RouteValueDictionary(requiredValues);
Routing\AttributeRouteTest.cs (2)
819private static RouteValueDictionary ToRouteValueDictionary(IDictionary<string, string> values) 821var result = new RouteValueDictionary();
Routing\DynamicControllerEndpointMatcherPolicyTest.cs (24)
92private Func<HttpContext, RouteValueDictionary, object, ValueTask<RouteValueDictionary>> Transform { get; set; } 94private Func<HttpContext, RouteValueDictionary, object, IReadOnlyList<Endpoint>, ValueTask<IReadOnlyList<Endpoint>>> Filter { get; set; } = (_, __, ___, e) => new ValueTask<IReadOnlyList<Endpoint>>(e); 105var values = new RouteValueDictionary[] { null, }; 135var values = new RouteValueDictionary[] { null, }; 142return new ValueTask<RouteValueDictionary>(new RouteValueDictionary()); 166var values = new RouteValueDictionary[] { null, }; 173return new ValueTask<RouteValueDictionary>(new RouteValueDictionary(new 212var values = new RouteValueDictionary[] { new RouteValueDictionary(new { slug = "test", }), }; 219return new ValueTask<RouteValueDictionary>(new RouteValueDictionary(new 243var values = new RouteValueDictionary[] { new RouteValueDictionary(new { slug = "test", }), }; 250return new ValueTask<RouteValueDictionary>(new RouteValueDictionary(new 300var values = new RouteValueDictionary[] { new RouteValueDictionary(new { slug = "test", }), }; 307return new ValueTask<RouteValueDictionary>(new RouteValueDictionary(new 339var values = new RouteValueDictionary[] { new RouteValueDictionary(new { slug = "test", }), }; 346return new ValueTask<RouteValueDictionary>(new RouteValueDictionary(new 401var values = new RouteValueDictionary[] { new RouteValueDictionary(new { slug = "test", }), }; 408return new ValueTask<RouteValueDictionary>(new RouteValueDictionary(new 447public Func<HttpContext, RouteValueDictionary, object, ValueTask<RouteValueDictionary>> Transform { get; set; } 449public Func<HttpContext, RouteValueDictionary, object, IReadOnlyList<Endpoint>, ValueTask<IReadOnlyList<Endpoint>>> Filter { get; set; } 451public override ValueTask<RouteValueDictionary> TransformAsync(HttpContext httpContext, RouteValueDictionary values) 456public override ValueTask<IReadOnlyList<Endpoint>> FilterAsync(HttpContext httpContext, RouteValueDictionary values, IReadOnlyList<Endpoint> endpoints)
Routing\KnownRouteValueConstraintTests.cs (7)
41var values = new RouteValueDictionary() 69var values = new RouteValueDictionary(); 102var values = new RouteValueDictionary() 139var values = new RouteValueDictionary() 168var values = new RouteValueDictionary() 225var values = new RouteValueDictionary() 254var values = new RouteValueDictionary()
Routing\UrlHelperExtensionsTest.cs (17)
41Assert.Collection(Assert.IsType<RouteValueDictionary>(actual.Values), 89Assert.Collection(Assert.IsType<RouteValueDictionary>(actual.Values), 121Assert.Collection(Assert.IsType<RouteValueDictionary>(actual.Values), 153Assert.Collection(Assert.IsType<RouteValueDictionary>(actual.Values), 185Assert.Collection(Assert.IsType<RouteValueDictionary>(actual.Values), 235Assert.Collection(Assert.IsType<RouteValueDictionary>(actual.Values), 284Assert.Collection(Assert.IsType<RouteValueDictionary>(actual.Values), 327Assert.Collection(Assert.IsType<RouteValueDictionary>(actual.Values), 375Assert.Collection(Assert.IsType<RouteValueDictionary>(actual.Values), 418Assert.Collection(Assert.IsType<RouteValueDictionary>(actual.Values), 453Assert.Collection(Assert.IsType<RouteValueDictionary>(actual.Values), 480Assert.Collection(Assert.IsType<RouteValueDictionary>(actual.Values), 524Assert.Collection(Assert.IsType<RouteValueDictionary>(actual.Values), 587Assert.Collection(Assert.IsType<RouteValueDictionary>(actual.Values).OrderBy(v => v.Key), 743Assert.Collection(Assert.IsType<RouteValueDictionary>(actual.Values), 791Assert.Collection(Assert.IsType<RouteValueDictionary>(actual.Values), 839Assert.Collection(Assert.IsType<RouteValueDictionary>(actual.Values),
Microsoft.AspNetCore.Mvc.Core.TestCommon (1)
LinkBuilder.cs (1)
26var dictionary = new RouteValueDictionary(values);
Microsoft.AspNetCore.Mvc.Razor.RuntimeCompilation.Test (1)
PageLoaderMatcherPolicyTest.cs (1)
98var values = new RouteValueDictionary[actions.Length];
Microsoft.AspNetCore.Mvc.RazorPages (7)
Infrastructure\DynamicPageEndpointMatcherPolicy.cs (3)
79var originalValues = candidates[i].Values; 81RouteValueDictionary? dynamicValues = null; 132var values = new RouteValueDictionary(dynamicValues);
Infrastructure\DynamicPageEndpointSelector.cs (1)
25public IReadOnlyList<Endpoint> SelectEndpoints(RouteValueDictionary values)
Infrastructure\DynamicPageMetadata.cs (2)
10public DynamicPageMetadata(RouteValueDictionary values) 19public RouteValueDictionary Values { get; }
Infrastructure\PageRequestDelegateFactory.cs (1)
71public RequestDelegate? CreateRequestDelegate(ActionDescriptor actionDescriptor, RouteValueDictionary? dataTokens)
Microsoft.AspNetCore.Mvc.RazorPages.Test (24)
Infrastructure\DynamicPageEndpointMatcherPolicyTest.cs (24)
111private Func<HttpContext, RouteValueDictionary, object, ValueTask<RouteValueDictionary>> Transform { get; set; } 113private Func<HttpContext, RouteValueDictionary, object, IReadOnlyList<Endpoint>, ValueTask<IReadOnlyList<Endpoint>>> Filter { get; set; } = (_, __, ___, e) => new ValueTask<IReadOnlyList<Endpoint>>(e); 122var values = new RouteValueDictionary[] { null, }; 152var values = new RouteValueDictionary[] { null, }; 159return new ValueTask<RouteValueDictionary>(new RouteValueDictionary()); 183var values = new RouteValueDictionary[] { null, }; 190return new ValueTask<RouteValueDictionary>(new RouteValueDictionary(new 223var values = new RouteValueDictionary[] { new RouteValueDictionary(new { slug = "test", }), }; 230return new ValueTask<RouteValueDictionary>(new RouteValueDictionary(new 274var values = new RouteValueDictionary[] { new RouteValueDictionary(new { slug = "test", }), }; 281return new ValueTask<RouteValueDictionary>(new RouteValueDictionary(new 304var values = new RouteValueDictionary[] { new RouteValueDictionary(new { slug = "test", }), }; 311return new ValueTask<RouteValueDictionary>(new RouteValueDictionary(new 342var values = new RouteValueDictionary[] { new RouteValueDictionary(new { slug = "test", }), }; 349return new ValueTask<RouteValueDictionary>(new RouteValueDictionary(new 402var values = new RouteValueDictionary[] { new RouteValueDictionary(new { slug = "test", }), }; 409return new ValueTask<RouteValueDictionary>(new RouteValueDictionary(new 447public Func<HttpContext, RouteValueDictionary, object, ValueTask<RouteValueDictionary>> Transform { get; set; } 449public Func<HttpContext, RouteValueDictionary, object, IReadOnlyList<Endpoint>, ValueTask<IReadOnlyList<Endpoint>>> Filter { get; set; } 451public override ValueTask<IReadOnlyList<Endpoint>> FilterAsync(HttpContext httpContext, RouteValueDictionary values, IReadOnlyList<Endpoint> endpoints) 456public override ValueTask<RouteValueDictionary> TransformAsync(HttpContext httpContext, RouteValueDictionary values)
Microsoft.AspNetCore.Mvc.Routing.Abstractions.Tests (1)
VirtualPathDataTests.cs (1)
33var dataTokens = new RouteValueDictionary();
Microsoft.AspNetCore.Mvc.TagHelpers (4)
AnchorTagHelper.cs (1)
218RouteValueDictionary routeValues = null;
Cache\CacheTagKey.cs (1)
24private static readonly Func<RouteValueDictionary, string, string> RouteValueAccessor = (c, key) =>
FormActionTagHelper.cs (1)
230RouteValueDictionary routeValues = null;
FormTagHelper.cs (1)
237RouteValueDictionary routeValues = null;
Microsoft.AspNetCore.Mvc.TagHelpers.Test (15)
AnchorTagHelperTest.cs (2)
450var rvd = Assert.IsType<RouteValueDictionary>(routeValues);
FormActionTagHelperTest.cs (8)
46.Returns<UrlActionContext>(c => $"{c.Controller}/{c.Action}/{(c.Values as RouteValueDictionary)["name"]}"); 121.Returns<UrlRouteContext>(c => $"{c.RouteName}/{(c.Values as RouteValueDictionary)["name"]}"); 224Assert.Equal<KeyValuePair<string, object>>(expectedRouteValues, param.Values as RouteValueDictionary); 283Assert.Equal<KeyValuePair<string, object>>(expectedRouteValues, param.Values as RouteValueDictionary); 356.Callback<UrlActionContext>(param => Assert.Equal(expectedRouteValues, param.Values as RouteValueDictionary)) 410.Callback<UrlRouteContext>(param => Assert.Equal(expectedRouteValues, param.Values as RouteValueDictionary)) 460var rvd = Assert.IsType<RouteValueDictionary>(routeContext.Values);
FormTagHelperTest.cs (5)
470var routeValueDictionary = Assert.IsType<RouteValueDictionary>(routeValues); 820It.Is<RouteValueDictionary>(m => string.Equals(m["name"], "value")), 928var rvd = Assert.IsType<RouteValueDictionary>(routeValues);
Microsoft.AspNetCore.Mvc.Test (1)
Routing\ActionConstraintMatcherPolicyTest.cs (1)
487var values = new RouteValueDictionary[actions.Length];
Microsoft.AspNetCore.Mvc.ViewFeatures (2)
RemoteAttributeBase.cs (2)
43/// Gets the <see cref="RouteValueDictionary"/> used when generating the URL where client should send a 46protected RouteValueDictionary RouteData { get; }
Microsoft.AspNetCore.Mvc.ViewFeatures.Test (14)
PageRemoteAttributeTest.cs (6)
33var ambientValues = new RouteValueDictionary() 54var routeDictionary = Assert.IsType<RouteValueDictionary>(urlHelper.RouteValues); 71var ambientValues = new RouteValueDictionary 103var ambientValues = new RouteValueDictionary 133var ambientValues = new RouteValueDictionary
RemoteAttributeTest.cs (7)
169var routeDictionary = Assert.IsType<RouteValueDictionary>(urlHelper.RouteValues); 188var routeDictionary = Assert.IsType<RouteValueDictionary>(urlHelper.RouteValues); 209var routeDictionary = Assert.IsType<RouteValueDictionary>(urlHelper.RouteValues); 572public new RouteValueDictionary RouteData
Rendering\HtmlHelperCheckboxTest.cs (1)
484var dictionary = new RouteValueDictionary(new { Property3 = "Property3Value" });
Microsoft.AspNetCore.Routing (176)
Constraints\BoolRouteConstraint.cs (1)
29RouteValueDictionary values,
Constraints\CompositeRouteConstraint.cs (1)
43RouteValueDictionary values,
Constraints\DateTimeRouteConstraint.cs (1)
35RouteValueDictionary values,
Constraints\DecimalRouteConstraint.cs (1)
29RouteValueDictionary values,
Constraints\DoubleRouteConstraint.cs (1)
29RouteValueDictionary values,
Constraints\FileNameRouteConstraint.cs (1)
100RouteValueDictionary values,
Constraints\FloatRouteConstraint.cs (1)
29RouteValueDictionary values,
Constraints\GuidRouteConstraint.cs (1)
31RouteValueDictionary values,
Constraints\HttpMethodRouteConstraint.cs (1)
37RouteValueDictionary values,
Constraints\IntRouteConstraint.cs (1)
29RouteValueDictionary values,
Constraints\LengthRouteConstraint.cs (1)
85RouteValueDictionary values,
Constraints\LongRouteConstraint.cs (1)
29RouteValueDictionary values,
Constraints\MaxLengthRouteConstraint.cs (1)
49RouteValueDictionary values,
Constraints\MaxRouteConstraint.cs (1)
43RouteValueDictionary values,
Constraints\MinLengthRouteConstraint.cs (1)
49RouteValueDictionary values,
Constraints\MinRouteConstraint.cs (1)
43RouteValueDictionary values,
Constraints\NonFileNameRouteConstraint.cs (1)
96RouteValueDictionary values,
Constraints\NullRouteConstraint.cs (1)
21public bool Match(HttpContext? httpContext, IRouter? route, string routeKey, RouteValueDictionary values, RouteDirection routeDirection)
Constraints\OptionalRouteConstraint.cs (1)
43RouteValueDictionary values,
Constraints\RangeRouteConstraint.cs (1)
57RouteValueDictionary values,
Constraints\RegexErrorStubRouteConstraint.cs (1)
24bool IRouteConstraint.Match(HttpContext? httpContext, IRouter? route, string routeKey, RouteValueDictionary values, RouteDirection routeDirection)
Constraints\RegexRouteConstraint.cs (1)
84RouteValueDictionary values,
Constraints\RequiredRouteConstraint.cs (1)
23RouteValueDictionary values,
Constraints\StringRouteConstraint.cs (1)
29public bool Match(HttpContext? httpContext, IRouter? route, string routeKey, RouteValueDictionary values, RouteDirection routeDirection)
DefaultLinkGenerator.cs (17)
72RouteValueDictionary values, 73RouteValueDictionary? ambientValues = default, 98RouteValueDictionary values, 122RouteValueDictionary values, 123RouteValueDictionary? ambientValues = default, 151RouteValueDictionary values, 202RouteValueDictionary values, 203RouteValueDictionary? ambientValues, 236RouteValueDictionary values, 237RouteValueDictionary? ambientValues, 283RouteValueDictionary values, 284RouteValueDictionary? ambientValues, 317public static RouteValueDictionary? GetAmbientValues(HttpContext? httpContext) 362public static void TemplateFailedRequiredValues(ILogger logger, RouteEndpoint endpoint, RouteValueDictionary? ambientValues, RouteValueDictionary values) 379public static void TemplateFailedConstraint(ILogger logger, RouteEndpoint endpoint, string? parameterName, IRouteConstraint? constraint, RouteValueDictionary values) 395public static void TemplateFailedExpansion(ILogger logger, RouteEndpoint endpoint, RouteValueDictionary values)
DefaultLinkParser.cs (3)
48public override RouteValueDictionary? ParsePathByAddress<TAddress>(TAddress address, PathString path) 59if (TryParse(endpoint, path, out var values)) 119internal bool TryParse(RouteEndpoint endpoint, PathString path, [NotNullWhen(true)] out RouteValueDictionary? values)
LinkGeneratorEndpointNameAddressExtensions.cs (4)
76RouteValueDictionary? values = default, 140RouteValueDictionary? values = default, 246RouteValueDictionary? values = default, 348RouteValueDictionary values,
LinkGeneratorRouteValuesAddressExtensions.cs (5)
76RouteValueDictionary? values = default, 140RouteValueDictionary? values = default, 246RouteValueDictionary? values = default, 342RouteValueDictionary values, 355private static RouteValuesAddress CreateAddress(HttpContext? httpContext, string? routeName, RouteValueDictionary? values)
LinkParser.cs (2)
21/// A <see cref="RouteValueDictionary"/> with the parsed values if parsing is successful; 35public abstract RouteValueDictionary? ParsePathByAddress<TAddress>(TAddress address, PathString path);
LinkParserEndpointNameAddressExtensions.cs (2)
21/// A <see cref="RouteValueDictionary"/> with the parsed values if parsing is successful; 35public static RouteValueDictionary? ParsePathByEndpointName(
Matching\CandidateSet.cs (6)
33/// <param name="values">The list of <see cref="RouteValueDictionary"/> instances.</param> 35public CandidateSet(Endpoint[] endpoints, RouteValueDictionary[] values, int[] scores) 162/// The <see cref="RouteValueDictionary"/> to replace the original <see cref="RouteValueDictionary"/> at 165public void ReplaceEndpoint(int index, Endpoint? endpoint, RouteValueDictionary? values) 242var values = Candidates[index].Values;
Matching\CandidateState.cs (3)
20internal CandidateState(Endpoint endpoint, RouteValueDictionary? values, int score) 50/// Gets <see cref="RouteValueDictionary"/> associated with the 53public RouteValueDictionary? Values { get; internal set; }
Matching\DefaultEndpointSelector.cs (1)
61RouteValueDictionary? values = null;
Matching\DfaMatcher.cs (3)
151state.Values = RouteValueDictionary.FromArray(slots); 280RouteValueDictionary values) 301RouteValueDictionary values)
Matching\DfaMatcherBuilder.cs (1)
374var routeValues = new RouteValueDictionary();
Patterns\DefaultRoutePatternTransformer.cs (3)
30public override RoutePattern SubstituteRequiredValues(RoutePattern original, RouteValueDictionary requiredValues) 152RouteValueDictionary updatedDefaults = null; 197private bool MatchesConstraints(RoutePattern pattern, RoutePatternParameterPart parameter, string key, RouteValueDictionary requiredValues)
Patterns\RoutePatternFactory.cs (41)
59/// The provided object will be converted to key-value pairs using <see cref="RouteValueDictionary"/> 64/// The provided object will be converted to key-value pairs using <see cref="RouteValueDictionary"/> 85/// The provided object will be converted to key-value pairs using <see cref="RouteValueDictionary"/> 90/// The provided object will be converted to key-value pairs using <see cref="RouteValueDictionary"/> 95public static RoutePattern Parse([StringSyntax("Route")] string pattern, RouteValueDictionary? defaults, RouteValueDictionary? parameterPolicies) 110/// The provided object will be converted to key-value pairs using <see cref="RouteValueDictionary"/> 115/// The provided object will be converted to key-value pairs using <see cref="RouteValueDictionary"/> 139/// The provided object will be converted to key-value pairs using <see cref="RouteValueDictionary"/> 144/// The provided object will be converted to key-value pairs using <see cref="RouteValueDictionary"/> 152public static RoutePattern Parse([StringSyntax("Route")] string pattern, RouteValueDictionary? defaults, RouteValueDictionary? parameterPolicies, RouteValueDictionary? requiredValues) 192/// The provided object will be converted to key-value pairs using <see cref="RouteValueDictionary"/> 197/// The provided object will be converted to key-value pairs using <see cref="RouteValueDictionary"/> 220/// The provided object will be converted to key-value pairs using <see cref="RouteValueDictionary"/> 225/// The provided object will be converted to key-value pairs using <see cref="RouteValueDictionary"/> 232RouteValueDictionary? defaults, 233RouteValueDictionary? parameterPolicies, 248/// The provided object will be converted to key-value pairs using <see cref="RouteValueDictionary"/> 253/// The provided object will be converted to key-value pairs using <see cref="RouteValueDictionary"/> 278/// The provided object will be converted to key-value pairs using <see cref="RouteValueDictionary"/> 283/// The provided object will be converted to key-value pairs using <see cref="RouteValueDictionary"/> 291RouteValueDictionary? defaults, 292RouteValueDictionary? parameterPolicies, 331/// The provided object will be converted to key-value pairs using <see cref="RouteValueDictionary"/> 336/// The provided object will be converted to key-value pairs using <see cref="RouteValueDictionary"/> 359/// The provided object will be converted to key-value pairs using <see cref="RouteValueDictionary"/> 364/// The provided object will be converted to key-value pairs using <see cref="RouteValueDictionary"/> 371RouteValueDictionary? defaults, 372RouteValueDictionary? parameterPolicies, 387/// The provided object will be converted to key-value pairs using <see cref="RouteValueDictionary"/> 392/// The provided object will be converted to key-value pairs using <see cref="RouteValueDictionary"/> 417/// The provided object will be converted to key-value pairs using <see cref="RouteValueDictionary"/> 422/// The provided object will be converted to key-value pairs using <see cref="RouteValueDictionary"/> 430RouteValueDictionary? defaults, 431RouteValueDictionary? parameterPolicies, 442RouteValueDictionary? defaults, 444RouteValueDictionary? requiredValues, 648private static Dictionary<string, List<RoutePatternParameterPolicyReference>>? CreateRoutePatternPolicyReferences(RouteValueDictionary? parameterPolicies) 1152private static RouteValueDictionary? Wrap(object? values)
Patterns\RoutePatternMatcher.cs (7)
25RouteValueDictionary defaults) 59public RouteValueDictionary Defaults { get; } 63public bool TryMatch(PathString path, RouteValueDictionary values) 247private bool SavePathSegmentsAsValues(int index, RouteValueDictionary values, StringSegment requestSegment, RoutePatternPathSegment pathSegment) 289RouteValueDictionary values) 335RouteValueDictionary values, 347var outValues = new RouteValueDictionary();
Patterns\RoutePatternTransformer.cs (1)
61public virtual RoutePattern? SubstituteRequiredValues(RoutePattern original, RouteValueDictionary requiredValues)
RequestDelegateRouteBuilderExtensions.cs (1)
260var constraints = new RouteValueDictionary
Route.cs (4)
47RouteValueDictionary? defaults, 49RouteValueDictionary? dataTokens, 69RouteValueDictionary? defaults, 71RouteValueDictionary? dataTokens,
RouteBase.cs (9)
38RouteValueDictionary? defaults, 40RouteValueDictionary? dataTokens) 77public virtual RouteValueDictionary DataTokens { get; protected set; } 82public virtual RouteValueDictionary Defaults { get; protected set; } 240protected static RouteValueDictionary GetDefaults( 242RouteValueDictionary? defaults) 244var result = defaults == null ? new RouteValueDictionary() : new RouteValueDictionary(defaults); 276RouteValueDictionary destination, 277RouteValueDictionary values)
RouteConstraintMatcher.cs (1)
38RouteValueDictionary routeValues,
RouteValuesAddress.cs (2)
23public RouteValueDictionary ExplicitValues { get; set; } = default!; 28public RouteValueDictionary? AmbientValues { get; set; }
Template\DefaultTemplateBinderFactory.cs (1)
26public override TemplateBinder Create(RouteTemplate template, RouteValueDictionary defaults)
Template\TemplateBinder.cs (17)
25private readonly RouteValueDictionary? _defaults; 47RouteValueDictionary defaults) 67RouteValueDictionary? defaults, 83var filters = new RouteValueDictionary(_defaults); 115var filters = new RouteValueDictionary(_defaults); 160public TemplateValuesResult? GetValues(RouteValueDictionary? ambientValues, RouteValueDictionary values) 383var acceptedValues = RouteValueDictionary.FromArray(slots); 406var combinedValues = new RouteValueDictionary(acceptedValues); 431public bool TryProcessConstraints(HttpContext? httpContext, RouteValueDictionary combinedValues, out string? parameterName, out IRouteConstraint? constraint) 455public string? BindValues(RouteValueDictionary acceptedValues) 471RouteValueDictionary acceptedValues, 499private bool TryBindValuesCore(UriBuildingContext context, RouteValueDictionary acceptedValues) 698RouteValueDictionary? ambientValues, 699RouteValueDictionary acceptedValues, 700RouteValueDictionary combinedValues)
Template\TemplateBinderFactory.cs (1)
20public abstract TemplateBinder Create(RouteTemplate template, RouteValueDictionary defaults);
Template\TemplateMatcher.cs (4)
28RouteValueDictionary defaults) 67public RouteValueDictionary Defaults { get; } 79/// <param name="values">A <see cref="RouteValueDictionary"/> to populate with parameter values.</param> 81public bool TryMatch(PathString path, RouteValueDictionary values)
Template\TemplateValuesResult.cs (2)
14public RouteValueDictionary AcceptedValues { get; set; } = default!; 27public RouteValueDictionary CombinedValues { get; set; } = default!;
Tree\InboundRouteEntry.cs (1)
35public RouteValueDictionary Defaults { get; set; }
Tree\LinkGenerationDecisionTree.cs (5)
21private static readonly RouteValueDictionary EmptyAmbientValues = new RouteValueDictionary(); 67public IList<OutboundMatchResult> GetMatches(RouteValueDictionary values, RouteValueDictionary ambientValues) 109RouteValueDictionary values, 110RouteValueDictionary ambientValues,
Tree\OutboundRouteEntry.cs (2)
24public RouteValueDictionary Defaults { get; set; } 56public RouteValueDictionary RequiredLinkValues { get; set; }
Tree\TreeRouteBuilder.cs (2)
175/// <param name="requiredLinkValues">The <see cref="RouteValueDictionary"/> containing the route values.</param> 182RouteValueDictionary requiredLinkValues,
Tree\TreeRouter.cs (1)
296var inputValues = new RouteValueDictionary();
Microsoft.AspNetCore.Routing.Abstractions (33)
IRouteConstraint.cs (1)
39RouteValueDictionary values,
LinkGenerator.cs (6)
49RouteValueDictionary values, 50RouteValueDictionary? ambientValues = default, 71RouteValueDictionary values, 112RouteValueDictionary values, 113RouteValueDictionary? ambientValues = default, 149RouteValueDictionary values,
Properties\AssemblyInfo.cs (1)
14[assembly: TypeForwardedTo(typeof(RouteValueDictionary))]
RouteData.cs (16)
17private RouteValueDictionary? _dataTokens; 19private RouteValueDictionary? _values; 57/// <param name="values">The <see cref="RouteValueDictionary"/> values.</param> 58public RouteData(RouteValueDictionary values) 68public RouteValueDictionary DataTokens 100public RouteValueDictionary Values 122/// <see cref="PushState(IRouter, RouteValueDictionary, RouteValueDictionary)"/>. 130/// A <see cref="RouteValueDictionary"/> to merge into <see cref="Values"/>. If <c>null</c>, then 134/// A <see cref="RouteValueDictionary"/> to merge into <see cref="DataTokens"/>. If <c>null</c>, then 138public RouteDataSnapshot PushState(IRouter? router, RouteValueDictionary? values, RouteValueDictionary? dataTokens) 202private readonly RouteValueDictionary? _dataTokens; 204private readonly RouteValueDictionary? _values; 215RouteValueDictionary? dataTokens, 217RouteValueDictionary? values)
VirtualPathContext.cs (6)
21RouteValueDictionary ambientValues, 22RouteValueDictionary values) 36RouteValueDictionary ambientValues, 37RouteValueDictionary values, 49public RouteValueDictionary AmbientValues { get; } 64public RouteValueDictionary Values { get; set; }
VirtualPathData.cs (3)
12private RouteValueDictionary _dataTokens; 34RouteValueDictionary dataTokens) 46public RouteValueDictionary DataTokens
Microsoft.AspNetCore.Routing.Microbenchmarks (13)
EndpointRoutingBenchmarkBase.cs (1)
126protected (HttpContext httpContext, RouteValueDictionary ambientValues) CreateCurrentRequestContext(
LinkGeneration\LinkGenerationGithubBenchmark.cs (2)
15private (HttpContext HttpContext, RouteValueDictionary AmbientValues) _requestContext; 16private RouteValueDictionary _lookUpValues;
LinkGeneration\SingleRouteRouteValuesAddressSchemeBenchmark.cs (1)
14private (HttpContext HttpContext, RouteValueDictionary AmbientValues) _requestContext;
LinkGeneration\SingleRouteWithConstraintsBenchmark.cs (1)
15private (HttpContext HttpContext, RouteValueDictionary AmbientValues) _requestContext;
LinkGeneration\SingleRouteWithNoParametersBenchmark.cs (1)
15private (HttpContext HttpContext, RouteValueDictionary AmbientValues) _requestContext;
LinkGeneration\SingleRouteWithParametersBenchmark.cs (1)
15private (HttpContext HttpContext, RouteValueDictionary AmbientValues) _requestContext;
src\Http\Routing\test\UnitTests\Matching\RouteMatcherBuilder.cs (3)
52var defaults = new RouteValueDictionary(endpoint.RoutePattern.Defaults); 78private readonly RouteValueDictionary[] _values; 86_values = new RouteValueDictionary[_candidates.Length];
src\Http\Routing\test\UnitTests\Matching\TreeRouterMatcherBuilder.cs (3)
56var defaults = new RouteValueDictionary(endpoint.RoutePattern.Defaults); 80private readonly RouteValueDictionary[] _values; 88_values = new RouteValueDictionary[_candidates.Length];
Microsoft.AspNetCore.Routing.Tests (237)
ConstraintMatcherTest.cs (9)
22var routeValueDictionary = new RouteValueDictionary(new { a = "value", b = "value" }); 90var routeValueDictionary = new RouteValueDictionary(new { a = "value", b = "value" }); 110var routeValueDictionary = new RouteValueDictionary(new { a = "value", b = "value" }); 130var routeValueDictionary = new RouteValueDictionary(new { c = "value", d = "value" }); 150var routeValueDictionary = new RouteValueDictionary(new { a = "value", b = "value" }); 170var routeValueDictionary = new RouteValueDictionary(new { a = "value", b = "value" }); 199var routeValueDictionary = new RouteValueDictionary(new { a = "value", b = "value" }); 225RouteValueDictionary values, 243RouteValueDictionary values,
Constraints\CompositeRouteConstraintTests.cs (1)
40It.IsAny<RouteValueDictionary>(),
Constraints\ConstraintsTestHelper.cs (1)
11var values = new RouteValueDictionary() { { parameterName, value } };
Constraints\FileNameRouteConstraintTest.cs (3)
34var values = new RouteValueDictionary(); 72var values = new RouteValueDictionary(); 88var values = new RouteValueDictionary();
Constraints\HttpMethodRouteConstraintTests.cs (4)
23var values = new RouteValueDictionary(new { }); 44var values = new RouteValueDictionary(new { }); 64var values = new RouteValueDictionary(new { httpMethod = httpMethod }); 84var values = new RouteValueDictionary(new { httpMethod = httpMethod });
Constraints\NonFIleNameRouteConstraintTest.cs (3)
15var values = new RouteValueDictionary(); 32var values = new RouteValueDictionary(); 48var values = new RouteValueDictionary();
Constraints\RegexInlineRouteConstraintTests.cs (3)
27var values = new RouteValueDictionary(new { controller = routeValue }); 46var values = new RouteValueDictionary(new { action = "abc" }); 74var values = new RouteValueDictionary(new { controller = "\u0130" }); // Turkish upper-case dotted I
Constraints\RegexRouteConstraintTests.cs (5)
31var values = new RouteValueDictionary(new { controller = routeValue }); 50var values = new RouteValueDictionary(new { controller = "abc" }); 69var values = new RouteValueDictionary(new { controller = "Abc" }); 88var values = new RouteValueDictionary(new { action = "abc" }); 116var values = new RouteValueDictionary(new { controller = "\u0130" }); // Turkish upper-case dotted I
Constraints\StringRouteConstraintTest.cs (7)
18var values = new RouteValueDictionary(new { controller = "home" }); 38var values = new RouteValueDictionary(new { controller = "home" }); 58var values = new RouteValueDictionary(new { controller = "home" }); 78var values = new RouteValueDictionary(new { controller = "home" }); 98var values = new RouteValueDictionary(new { controller = "admin" }); 118var values = new RouteValueDictionary(new { controller = "admin" }); 142var values = new RouteValueDictionary(new { controller = routeValue });
DefaultInlineConstraintResolverTest.cs (2)
387RouteValueDictionary values, 405RouteValueDictionary values,
DefaultLinkGeneratorProcessTemplateTest.cs (5)
755It.IsAny<RouteValueDictionary>(), 797var expectedValues = new RouteValueDictionary( 830var expectedValues = new RouteValueDictionary( 862var expectedValues = new RouteValueDictionary( 896var expectedValues = new RouteValueDictionary(
DefaultLinkGeneratorTest.cs (4)
556public bool Match(HttpContext httpContext, IRouter route, string routeKey, RouteValueDictionary values, RouteDirection routeDirection) 636var values = new RouteValueDictionary(); 675var values = new RouteValueDictionary(); 713var values = new RouteValueDictionary();
DefaultLinkParserTest.cs (5)
30var values = parser.ParsePathByAddress(0, "/Home/Index/17"); 52var values = parser.ParsePathByAddress(0, "/"); 76var values = parser.ParsePathByAddress(0, "/Home/Index/17"); 96var values = parser.ParsePathByAddress(0, "/"); 112var values = parser.ParsePathByAddress(0, "/Home/Index/abc");
DefaultParameterPolicyFactoryTest.cs (2)
425public RouteValueDictionary Values { get; private set; } 437RouteValueDictionary values,
InlineRouteParameterParserTests.cs (1)
980RouteValueDictionary values,
LinkParserEndpointNameExtensionsTest.cs (3)
19var values = parser.ParsePathByEndpointName("Test", "/Home/Index/17"); 35var values = parser.ParsePathByEndpointName("Test", "/"); 50var values = parser.ParsePathByEndpointName("Test", "/Home/Index/17");
Matching\AcceptsMatcherPolicyTest.cs (1)
621return new CandidateSet(endpoints, new RouteValueDictionary[endpoints.Length], new int[endpoints.Length]);
Matching\CandidateSetTest.cs (2)
65var values = new RouteValueDictionary(); 343var values = new RouteValueDictionary[count];
Matching\DefaultEndpointSelectorTest.cs (1)
187return new CandidateSet(endpoints, new RouteValueDictionary[endpoints.Length], scores);
Matching\HttpMethodMatcherPolicyTest.cs (1)
167var candidates = new CandidateSet(endpoints, new RouteValueDictionary[endpoints.Length], Enumerable.Repeat<int>(-1, candidateNum).ToArray());
Matching\MatcherAssert.cs (6)
11public static void AssertRouteValuesEqual(object expectedValues, RouteValueDictionary actualValues) 16public static void AssertRouteValuesEqual(RouteValueDictionary expectedValues, RouteValueDictionary actualValues) 58RouteValueDictionary values, 66var actualValues = httpContext.Request.RouteValues; 104private static string FormatRouteValues(RouteValueDictionary values)
Matching\MatcherConformanceTest.SingleEndpoint.cs (4)
199var values = new RouteValueDictionary(new { p = "14", }); 214var values = new RouteValueDictionary(new { p = "14", }); 229var values = new RouteValueDictionary(new { p = "14", }); 244var values = new RouteValueDictionary()
Matching\RouteMatcherBuilder.cs (3)
52var defaults = new RouteValueDictionary(endpoint.RoutePattern.Defaults); 78private readonly RouteValueDictionary[] _values; 86_values = new RouteValueDictionary[_candidates.Length];
Matching\TreeRouterMatcherBuilder.cs (3)
56var defaults = new RouteValueDictionary(endpoint.RoutePattern.Defaults); 80private readonly RouteValueDictionary[] _values; 88_values = new RouteValueDictionary[_candidates.Length];
Patterns\RoutePatternMatcherTest.cs (39)
17var values = new RouteValueDictionary(); 35var values = new RouteValueDictionary(); 50var values = new RouteValueDictionary(); 68var values = new RouteValueDictionary(); 83var values = new RouteValueDictionary(); 100var values = new RouteValueDictionary(); 123var values = new RouteValueDictionary(); 156var values = new RouteValueDictionary(); 191var values = new RouteValueDictionary(); 229var values = new RouteValueDictionary(); 244var values = new RouteValueDictionary(); 260var values = new RouteValueDictionary(); 275var values = new RouteValueDictionary(); 291var values = new RouteValueDictionary(); 307var values = new RouteValueDictionary(); 324var values = new RouteValueDictionary(); 339var values = new RouteValueDictionary(); 354var values = new RouteValueDictionary(); 376var values = new RouteValueDictionary(); 391var values = new RouteValueDictionary(); 412var values = new RouteValueDictionary(); 700var values = new RouteValueDictionary(); 718var values = new RouteValueDictionary(); 736var values = new RouteValueDictionary(); 754var values = new RouteValueDictionary(new { p2 = "hello" }); 772var values = new RouteValueDictionary(new { p2 = "overridden" }); 790var values = new RouteValueDictionary(new { p2 = "overridden" }); 903var values = new RouteValueDictionary(); 922var values = new RouteValueDictionary(); 941var values = new RouteValueDictionary(); 959var values = new RouteValueDictionary(); 976var values = new RouteValueDictionary(); 1001var values = new RouteValueDictionary(); 1024var values = new RouteValueDictionary(); 1047var values = new RouteValueDictionary(); 1064var values = new RouteValueDictionary(); 1081var values = new RouteValueDictionary(); 1100RouteValueDictionary defaults, 1108var values = new RouteValueDictionary();
RouteCollectionTest.cs (7)
125public void GetVirtualPath_ReturnsDataTokens(RouteValueDictionary dataTokens, string routerName) 130var pathContextValues = new RouteValueDictionary { { "controller", virtualPath } }; 141var expectedDataTokens = dataTokens ?? new RouteValueDictionary(); 379RouteValueDictionary values, 432RouteValueDictionary routeValues, 565RouteValueDictionary dataTokens = null, 616RouteValueDictionary values,
RouteConstraintBuilderTest.cs (1)
161var routeValues = new RouteValueDictionary(new { controller = routeValue });
RouteOptionsTests.cs (1)
71RouteValueDictionary values,
RouteTest.cs (17)
59var originalRouteDataValues = context.RouteData.Values; 62var originalDataTokens = context.RouteData.DataTokens; 113var originalRouteDataValues = context.RouteData.Values; 116var originalDataTokens = context.RouteData.DataTokens; 755RouteValueDictionary dataTokens) 765var routeDataTokens = 775var expectedDataTokens = dataTokens ?? new RouteValueDictionary(); 799RouteValueDictionary dataTokens) 816var expectedDataTokens = dataTokens ?? new RouteValueDictionary(); 962It.IsAny<RouteValueDictionary>(), 1002var expectedValues = new RouteValueDictionary( 1033var expectedValues = new RouteValueDictionary( 1063var expectedValues = new RouteValueDictionary( 1094var expectedValues = new RouteValueDictionary( 1512RouteValueDictionary values, 1513RouteValueDictionary ambientValues) 1822RouteValueDictionary dataTokens = null)
RoutingServiceCollectionExtensionsTests.cs (1)
56public bool Match(HttpContext httpContext, IRouter route, string routeKey, RouteValueDictionary values, RouteDirection routeDirection)
Template\TemplateBinderTests.cs (42)
14public static TheoryData<string, RouteValueDictionary, RouteValueDictionary, string> EmptyAndNullDefaultValues => 107RouteValueDictionary defaults, 108RouteValueDictionary values, 177public static TheoryData<string, RouteValueDictionary, RouteValueDictionary, RouteValueDictionary, string> OptionalParamValues => 255RouteValueDictionary defaults, 256RouteValueDictionary ambientValues, 257RouteValueDictionary values, 530var ambientValues = new RouteValueDictionary(); 538var values = new RouteValueDictionary(); 554var ambientValues = new RouteValueDictionary(); 561var values = new RouteValueDictionary(); 576var values = new RouteValueDictionary(); 594var values = new RouteValueDictionary(new { controller = "products", action = "showcategory", id = 123, maxPrice = 100 }); 714var ambientValues = new RouteValueDictionary(); 715var routeValues = new RouteValueDictionary(new { controller = "Test", action = "Index" }); 1132RouteValueDictionary defaults, 1133RouteValueDictionary ambientValues, 1134RouteValueDictionary values, 1233var defaults = new RouteValueDictionary(new { controller = "Home", action = "Index", area = (string)null }); 1234var ambientValues = new RouteValueDictionary(new { controller = "Rail", action = "Schedule", area = "Travel" }); 1235var explicitValues = new RouteValueDictionary(new { controller = "Home", action = "Index", area = "" }); 1262var defaults = new RouteValueDictionary(new { controller = "Home", action = "Index", area = "" }); 1263var ambientValues = new RouteValueDictionary(new { controller = "Rail", action = "Schedule", area = "Travel" }); 1264var explicitValues = new RouteValueDictionary(new { controller = "Home", action = "Index", area = (string)null }); 1292var defaults = new RouteValueDictionary(new { controller = "ConventionalTransformer", action = "Param" }); 1293var ambientValues = new RouteValueDictionary(new { controller = "ConventionalTransformer", action = "Param" }); 1294var explicitValues = new RouteValueDictionary(new { controller = "ConventionalTransformer", action = "Param", param = "MyValue" }); 1322var defaults = new RouteValueDictionary(new { action = "Index" }); 1323var ambientValues = new RouteValueDictionary(new { area = "Travel", controller = "Rail", action = "Index" }); 1324var explicitValues = new RouteValueDictionary(new { controller = "Flight", action = "Index" }); 1352var defaults = new RouteValueDictionary(); 1353var ambientValues = new RouteValueDictionary(new { page = "/LGAnotherPage", id = "17" }); 1354var explicitValues = new RouteValueDictionary(new { controller = "LG2", action = "SomeAction" }); 1386var defaults = new RouteValueDictionary(); 1387var ambientValues = new RouteValueDictionary(new { area = "Admin", page = "/LGAnotherPage", id = "17" }); 1388var explicitValues = new RouteValueDictionary(new { controller = "LG2", action = "SomeAction" }); 1416var defaults = new RouteValueDictionary(new { controller = "LG3", action = "SomeAction", area = "Admin" }); 1417var ambientValues = new RouteValueDictionary(new { controller = "LG1", action = "LinkToAnArea", id = "17" }); 1418var explicitValues = new RouteValueDictionary(new { controller = "LG3", area = "Admin", action = "SomeAction", anothervalue = "5" });
Template\TemplateMatcherTests.cs (39)
16var values = new RouteValueDictionary(); 34var values = new RouteValueDictionary(); 49var values = new RouteValueDictionary(); 67var values = new RouteValueDictionary(); 82var values = new RouteValueDictionary(); 99var values = new RouteValueDictionary(); 122var values = new RouteValueDictionary(); 155var values = new RouteValueDictionary(); 190var values = new RouteValueDictionary(); 228var values = new RouteValueDictionary(); 243var values = new RouteValueDictionary(); 259var values = new RouteValueDictionary(); 274var values = new RouteValueDictionary(); 290var values = new RouteValueDictionary(); 306var values = new RouteValueDictionary(); 323var values = new RouteValueDictionary(); 338var values = new RouteValueDictionary(); 353var values = new RouteValueDictionary(); 375var values = new RouteValueDictionary(); 390var values = new RouteValueDictionary(); 411var values = new RouteValueDictionary(); 699var values = new RouteValueDictionary(); 717var values = new RouteValueDictionary(); 735var values = new RouteValueDictionary(); 753var values = new RouteValueDictionary(new { p2 = "hello" }); 771var values = new RouteValueDictionary(new { p2 = "overridden" }); 789var values = new RouteValueDictionary(new { p2 = "overridden" }); 902var values = new RouteValueDictionary(); 921var values = new RouteValueDictionary(); 940var values = new RouteValueDictionary(); 958var values = new RouteValueDictionary(); 975var values = new RouteValueDictionary(); 1000var values = new RouteValueDictionary(); 1023var values = new RouteValueDictionary(); 1046var values = new RouteValueDictionary(); 1063var values = new RouteValueDictionary(); 1080var values = new RouteValueDictionary(); 1099RouteValueDictionary defaults, 1107var values = new RouteValueDictionary();
TemplateParserDefaultValuesTests.cs (2)
30var defaults = ((Route)routeBuilder.Routes[0]).Defaults; 49var defaults = ((Route)routeBuilder.Routes[0]).Defaults;
TestObjects\CapturingConstraint.cs (1)
16RouteValueDictionary values,
Tree\TreeRouterTest.cs (8)
141var expectedRouteValues = new RouteValueDictionary(); 193var expectedRouteValues = new RouteValueDictionary(); 236var expectedRouteValues = new RouteValueDictionary(); 1739RouteValueDictionary nestedValues = null; 1762var originalValues = new RouteValueDictionary(context.RouteData.Values); 1776RouteValueDictionary nestedValues = null; 1820RouteValueDictionary nestedValues = null; 1868RouteValueDictionary nestedValues = null;
Microsoft.AspNetCore.Server.Kestrel.Core (2)
Internal\Http\HttpProtocol.cs (1)
79private RouteValueDictionary? _routeValues;
Internal\Http\HttpProtocol.FeatureCollection.cs (1)
236RouteValueDictionary IRouteValuesFeature.RouteValues
Microsoft.AspNetCore.StaticAssets (1)
Development\StaticAssetDevelopmentRuntimeHandler.cs (1)
312public bool Match(HttpContext? httpContext, IRouter? route, string routeKey, RouteValueDictionary values, RouteDirection routeDirection)
Mvc.RoutingWebSite (26)
Controllers\LG1Controller.cs (4)
41var values = QueryToRouteValues(HttpContext.Request.Query); 69var values = QueryToRouteValues(HttpContext.Request.Query); 109var values = QueryToRouteValues(HttpContext.Request.Query); 128private static RouteValueDictionary QueryToRouteValues(IQueryCollection query)
Controllers\LinkParserController.cs (3)
20var parsed = _linkParser.ParsePathByEndpointName("default", HttpContext.Request.Path); 31var parsed = _linkParser.ParsePathByEndpointName("AnotherRoute", path); 46private static JObject ToJObject(RouteValueDictionary values)
Controllers\RouteDataController.cs (1)
39var dataTokens = RouteData.DataTokens;
QueryStringConstraint.cs (1)
8public bool Match(HttpContext httpContext, IRouter route, string routeKey, RouteValueDictionary values, RouteDirection routeDirection)
StartupForDynamic.cs (5)
49public override ValueTask<RouteValueDictionary> TransformAsync(HttpContext httpContext, RouteValueDictionary values) 53var results = new RouteValueDictionary(); 62return new ValueTask<RouteValueDictionary>(results); 65public override ValueTask<IReadOnlyList<Endpoint>> FilterAsync(HttpContext httpContext, RouteValueDictionary values, IReadOnlyList<Endpoint> endpoints)
StartupForDynamicAndRazorPages.cs (5)
35public override ValueTask<RouteValueDictionary> TransformAsync(HttpContext httpContext, RouteValueDictionary values) 39return new ValueTask<RouteValueDictionary>(values); 44var results = new RouteValueDictionary(); 51return new ValueTask<RouteValueDictionary>(results);
StartupForDynamicOrder.cs (4)
89public override ValueTask<RouteValueDictionary> TransformAsync(HttpContext httpContext, RouteValueDictionary values) 96var results = new RouteValueDictionary(); 118return new ValueTask<RouteValueDictionary>(results);
StartupRoutingDifferentBranches.cs (3)
93public override ValueTask<RouteValueDictionary> TransformAsync(HttpContext httpContext, RouteValueDictionary values) 95return new ValueTask<RouteValueDictionary>(new RouteValueDictionary(new { controller = "Branches", action = "Index" }));
RoutingWebSite (1)
EndsWithStringRouteConstraint.cs (1)
17public bool Match(HttpContext httpContext, IRouter route, string routeKey, RouteValueDictionary values, RouteDirection routeDirection)