351 references to RouteValueDictionary
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 (67)
RouteValueDictionaryTests.cs (67)
15var dict = new RouteValueDictionary(); 40var other = new RouteValueDictionary() 418var dict = new RouteValueDictionary(); 429var dict = new RouteValueDictionary(); 442var dict = new RouteValueDictionary(); 455var dict = new RouteValueDictionary(); 510var dict = new RouteValueDictionary() 527var dict = new RouteValueDictionary() 544var dict = new RouteValueDictionary() 561var dict = new RouteValueDictionary(); 574var dict = new RouteValueDictionary(); 633var dict = new RouteValueDictionary() 653var dict = new RouteValueDictionary() 670var dict = new RouteValueDictionary() 687var dict = new RouteValueDictionary(); 714var dict = new RouteValueDictionary() 731var dict = new RouteValueDictionary(); 759var dict = new RouteValueDictionary() 776var dict = new RouteValueDictionary(); 804var dict = new RouteValueDictionary() 821var dict = new RouteValueDictionary(); 835var dict = new RouteValueDictionary(); 873var dict = new RouteValueDictionary() 893var dict = new RouteValueDictionary() 914var dict = new RouteValueDictionary() 935var dict = new RouteValueDictionary() 955var dict = new RouteValueDictionary(); 998var dict = new RouteValueDictionary() 1016var dict = new RouteValueDictionary() 1035var dict = new RouteValueDictionary() 1054var dict = new RouteValueDictionary() 1074var dict = new RouteValueDictionary() 1174var dict = new RouteValueDictionary(); 1187var dict = new RouteValueDictionary(); 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(); 1488var dict = new RouteValueDictionary() 1506var dict = new RouteValueDictionary() 1524var dict = new RouteValueDictionary() 1542var dict = new RouteValueDictionary(); 1556var dict = new RouteValueDictionary(); 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(); 1821var dict = new RouteValueDictionary(); 1840var dict = new RouteValueDictionary() 1862var dict = new RouteValueDictionary() 1891var dict = new RouteValueDictionary() 1913var dict = new RouteValueDictionary(); 1927var dict = new RouteValueDictionary(); 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 (11)
RouteValueDictionaryBenchmark.cs (11)
18_arrayValues = new RouteValueDictionary() 24_arrayValuesEmpty = new RouteValueDictionary(); 43var dictionary = new RouteValueDictionary 53var dictionary = new RouteValueDictionary 117var arrayValues = new RouteValueDictionary 130var arrayValues = new RouteValueDictionary 143var arrayValues = new RouteValueDictionary 155var arrayValues = new RouteValueDictionary 167var arrayValues = new RouteValueDictionary() 271var dictionary = new RouteValueDictionary 289var dictionary = new RouteValueDictionary
Microsoft.AspNetCore.Http.Results (5)
AcceptedAtRoute.cs (1)
56RouteValues = routeValues ?? new RouteValueDictionary();
AcceptedAtRouteOfT.cs (1)
62RouteValues = routeValues ?? new RouteValueDictionary();
CreatedAtRoute.cs (1)
56RouteValues = routeValues ?? new RouteValueDictionary();
CreatedAtRouteOfT.cs (1)
62RouteValues = routeValues ?? new RouteValueDictionary();
RedirectToRouteHttpResult.cs (1)
125RouteValues = routeValues ?? new RouteValueDictionary();
Microsoft.AspNetCore.Http.Results.Tests (26)
ResultsTests.cs (17)
103var routeValues = new RouteValueDictionary { ["foo"] = 123 }; 127Assert.Equal(new RouteValueDictionary(), result.RouteValues); 153var routeValues = new RouteValueDictionary { ["foo"] = 123 }; 177Assert.Equal(new RouteValueDictionary(), result.RouteValues); 191Assert.Equal(new RouteValueDictionary(), result.RouteValues); 767var routeValues = new RouteValueDictionary { ["foo"] = 123 }; 791Assert.Equal(new RouteValueDictionary(), result.RouteValues); 805Assert.Equal(new RouteValueDictionary(), 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); 1541var routeValues = new RouteValueDictionary { ["foo"] = 123 }; 1563Assert.Equal(new RouteValueDictionary(), result.RouteValues); 1574Assert.Equal(new RouteValueDictionary(), result.RouteValues);
TypedResultsTests.cs (9)
153Assert.Equal(new RouteValueDictionary(), result.RouteValues); 167Assert.Equal(new RouteValueDictionary(), result.RouteValues); 723Assert.Equal(new RouteValueDictionary(), result.RouteValues); 739Assert.Equal(new RouteValueDictionary(), result.RouteValues); 751Assert.Equal(new RouteValueDictionary(), result.RouteValues); 797Assert.Equal(new RouteValueDictionary(), result.RouteValues); 811Assert.Equal(new RouteValueDictionary(), result.RouteValues); 1326Assert.Equal(new RouteValueDictionary(), result.RouteValues); 1353Assert.Equal(new RouteValueDictionary(), result.RouteValues);
Microsoft.AspNetCore.Identity (1)
IdentityApiEndpointRouteBuilderExtensions.cs (1)
403var routeValues = new RouteValueDictionary()
Microsoft.AspNetCore.Mvc.Core (4)
Builder\ControllerEndpointRouteBuilderExtensions.cs (1)
508return new DynamicControllerMetadata(new RouteValueDictionary()
Routing\ActionEndpointFactory.cs (1)
189var requiredValues = new RouteValueDictionary();
Routing\AttributeRoute.cs (1)
81var defaults = new RouteValueDictionary();
Routing\UrlHelperBase.cs (1)
35_routeValueDictionary = new RouteValueDictionary();
Microsoft.AspNetCore.Mvc.Core.Test (17)
ControllerBaseTest.cs (1)
2591new RouteValueDictionary() { { "hello", "world" } },
ModelBinding\DefaultModelBindingContextTest.cs (1)
172result.Add(new RouteValueProvider(BindingSource.Path, new RouteValueDictionary()));
ModelBinding\RouteValueProviderTests.cs (2)
234var values = new RouteValueDictionary(); 255var values = new RouteValueDictionary();
Routing\AttributeRouteTest.cs (1)
821var result = new RouteValueDictionary();
Routing\DynamicControllerEndpointMatcherPolicyTest.cs (1)
142return new ValueTask<RouteValueDictionary>(new RouteValueDictionary());
Routing\EndpointRoutingUrlHelperTest.cs (1)
56urlHelper.ActionContext.HttpContext.Request.RouteValues = new RouteValueDictionary
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\UrlHelperExtensionsTest.cs (1)
64new RouteValueDictionary
Routing\UrlHelperTestBase.cs (1)
1083RouteData = new RouteData(new RouteValueDictionary()),
Microsoft.AspNetCore.Mvc.Razor.RuntimeCompilation.Test (1)
PageLoaderMatcherPolicyTest.cs (1)
101values[i] = new RouteValueDictionary();
Microsoft.AspNetCore.Mvc.RazorPages (1)
Builder\RazorPagesEndpointRouteBuilderExtensions.cs (1)
355return new DynamicPageMetadata(new RouteValueDictionary()
Microsoft.AspNetCore.Mvc.RazorPages.Test (3)
Infrastructure\DynamicPageEndpointMatcherPolicyTest.cs (1)
159return new ValueTask<RouteValueDictionary>(new RouteValueDictionary());
PageModelTest.cs (1)
942new RouteValueDictionary() { { "hello", "world" } },
PageTest.cs (1)
1871new RouteValueDictionary() { { "hello", "world" } },
Microsoft.AspNetCore.Mvc.Routing.Abstractions.Tests (4)
RouteDataTest.cs (3)
67var snapshot = routeData.PushState(null, new RouteValueDictionary(), new RouteValueDictionary()); 92new RouteValueDictionary());
VirtualPathDataTests.cs (1)
33var dataTokens = new RouteValueDictionary();
Microsoft.AspNetCore.Mvc.TagHelpers (3)
AnchorTagHelper.cs (1)
229routeValues = new RouteValueDictionary();
FormActionTagHelper.cs (1)
240routeValues = new RouteValueDictionary();
FormTagHelper.cs (1)
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 (4)
PageRemoteAttributeTest.cs (4)
33var ambientValues = new RouteValueDictionary() 71var ambientValues = new RouteValueDictionary 103var ambientValues = new RouteValueDictionary 133var ambientValues = new RouteValueDictionary
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 (18)
DefaultLinkParser.cs (1)
123values = new RouteValueDictionary();
LinkGeneratorEndpointNameAddressExtensions.cs (3)
88values ?? new(), 148return generator.GetPathByAddress<string>(endpointName, values ?? new(), pathBase, fragment, options); 260values ?? new(),
LinkGeneratorRouteValuesAddressExtensions.cs (1)
360ExplicitValues = values ?? new(),
Matching\DfaMatcher.cs (2)
160state.Values ??= new RouteValueDictionary(); 170state.Values ??= new RouteValueDictionary();
Matching\DfaMatcherBuilder.cs (1)
374var routeValues = new RouteValueDictionary();
Patterns\RoutePatternMatcher.cs (2)
30Defaults = defaults ?? new RouteValueDictionary(); 347var outValues = new RouteValueDictionary();
RequestDelegateRouteBuilderExtensions.cs (1)
260var constraints = new RouteValueDictionary
RouteBase.cs (2)
47DataTokens = dataTokens ?? new RouteValueDictionary(); 244var result = defaults == null ? new RouteValueDictionary() : new RouteValueDictionary(defaults);
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 (3)
RouteData.cs (2)
74_dataTokens = new RouteValueDictionary(); 106_values = new RouteValueDictionary();
VirtualPathData.cs (1)
52_dataTokens = new RouteValueDictionary();
Microsoft.AspNetCore.Routing.Microbenchmarks (4)
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 (1)
67new RouteValueDictionary(),
Microsoft.AspNetCore.Routing.Tests (157)
Builder\RouteHandlerEndpointRouteBuilderExtensionsTest.cs (1)
202httpContext.Request.RouteValues = new();
ConstraintMatcherTest.cs (1)
186routeValues: new 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\NonFIleNameRouteConstraintTest.cs (3)
15var values = new RouteValueDictionary(); 32var values = new RouteValueDictionary(); 48var values = new RouteValueDictionary();
DefaultLinkGeneratorTest.cs (3)
636var values = new RouteValueDictionary(); 675var values = new RouteValueDictionary(); 713var values = new RouteValueDictionary();
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 (2)
28AssertMatch(httpContext, expected, new RouteValueDictionary()); 33AssertMatch(httpContext, expected, new RouteValueDictionary(), ignoreValues);
Matching\MatcherConformanceTest.SingleEndpoint.cs (1)
244var values = new RouteValueDictionary()
Matching\RouteMatcherBuilder.cs (1)
67new RouteValueDictionary(),
Patterns\RoutePatternMatcherTest.cs (43)
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(); 654new RouteValueDictionary()); 664new RouteValueDictionary()); 674new RouteValueDictionary()); 700var values = new RouteValueDictionary(); 718var values = new RouteValueDictionary(); 736var values = new RouteValueDictionary(); 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" } }); 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(); 1106defaults ?? new RouteValueDictionary()); 1108var values = new RouteValueDictionary();
RouteCollectionTest.cs (11)
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 { 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" };
RouteTest.cs (7)
766new RouteValueDictionary() { { "ThisShouldBeIgnored", "" } }; 775var expectedDataTokens = dataTokens ?? new RouteValueDictionary(); 816var expectedDataTokens = dataTokens ?? new RouteValueDictionary(); 1542new RouteValueDictionary { { "key1", "data1" }, { "key2", 13 } }, 1753yield return new object[] { new RouteValueDictionary() }; 1754yield return new object[] { new RouteValueDictionary() { { "tokenKeyA", "tokenValueA" } } }; 1812new RouteValueDictionary(),
RouteValuesAddressSchemeTest.cs (2)
327ExplicitValues = new RouteValueDictionary(), 328AmbientValues = new RouteValueDictionary(),
Template\TemplateBinderTests.cs (21)
62new RouteValueDictionary(), 68new RouteValueDictionary(), 201new RouteValueDictionary(), 207new RouteValueDictionary(), 214new RouteValueDictionary(), 215new RouteValueDictionary(), 221new RouteValueDictionary(), 229new RouteValueDictionary(), 237new RouteValueDictionary(), 244new RouteValueDictionary(), 455new RouteValueDictionary(), 530var ambientValues = new RouteValueDictionary(); 538var values = new RouteValueDictionary(); 554var ambientValues = new RouteValueDictionary(); 561var values = new RouteValueDictionary(); 576var values = new RouteValueDictionary(); 634new RouteValueDictionary(), 645new RouteValueDictionary(), 714var ambientValues = new RouteValueDictionary(); 1352var defaults = new RouteValueDictionary(); 1386var defaults = new RouteValueDictionary();
Template\TemplateMatcherTests.cs (43)
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(); 653new RouteValueDictionary()); 663new RouteValueDictionary()); 673new RouteValueDictionary()); 699var values = new RouteValueDictionary(); 717var values = new RouteValueDictionary(); 735var values = new RouteValueDictionary(); 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" } }); 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(); 1105defaults ?? new RouteValueDictionary()); 1107var values = new RouteValueDictionary();
Tree\TreeRouteBuilderTest.cs (4)
27new RouteValueDictionary(), 34new RouteValueDictionary(), 54new RouteValueDictionary(), 61new RouteValueDictionary(),
Tree\TreeRouterTest.cs (3)
141var expectedRouteValues = new RouteValueDictionary(); 193var expectedRouteValues = new RouteValueDictionary(); 236var expectedRouteValues = new RouteValueDictionary();
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 (3)
StartupForDynamic.cs (1)
53var results = new RouteValueDictionary();
StartupForDynamicAndRazorPages.cs (1)
44var results = new RouteValueDictionary();
StartupForDynamicOrder.cs (1)
96var results = new RouteValueDictionary();