96 writes to RouteValues
Microsoft.AspNetCore.Grpc.Swagger (1)
Internal\GrpcJsonTranscodingDescriptionProvider.cs (1)
68RouteValues = new Dictionary<string, string?>
Microsoft.AspNetCore.Grpc.Swagger.Tests (1)
XmlComments\XmlCommentsDocumentFilterTests.cs (1)
52RouteValues =
Microsoft.AspNetCore.Mvc.Abstractions (1)
Abstractions\ActionDescriptor.cs (1)
22RouteValues = new Dictionary<string, string?>(StringComparer.OrdinalIgnoreCase);
Microsoft.AspNetCore.Mvc.ApiExplorer (1)
EndpointMetadataApiDescriptionProvider.cs (1)
108RouteValues =
Microsoft.AspNetCore.Mvc.Core.Test (78)
ApplicationModels\ControllerActionDescriptorProviderTests.cs (2)
1295RouteValues = new Dictionary<string, string>() 1303RouteValues = new Dictionary<string, string>()
Infrastructure\ActionSelectionTableTest.cs (25)
25RouteValues = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase) 34RouteValues = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase) 61RouteValues = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase) 71RouteValues = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase) 101RouteValues = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase) 111RouteValues = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase) 140RouteValues = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase) 149RouteValues = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase) 175RouteValues = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase) 184RouteValues = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase) 210RouteValues = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase) 219RouteValues = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase) 245RouteValues = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase) 275RouteValues = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase) 308RouteValues = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase) 317RouteValues = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase) 326RouteValues = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase) 357RouteValues = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase) 366RouteValues = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase) 375RouteValues = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase) 403RouteValues = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase) 434RouteValues = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase) 465RouteValues = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase) 496RouteValues = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase) 525RouteValues = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase)
Infrastructure\ActionSelectorTest.cs (20)
35RouteValues = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase) 44RouteValues = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase) 74RouteValues = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase) 84RouteValues = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase) 116RouteValues = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase) 125RouteValues = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase) 154RouteValues = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase) 163RouteValues = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase) 192RouteValues = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase) 228RouteValues = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase) 237RouteValues = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase) 246RouteValues = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase) 280RouteValues = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase) 289RouteValues = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase) 298RouteValues = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase) 329RouteValues = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase) 363RouteValues = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase) 397RouteValues = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase) 431RouteValues = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase) 465RouteValues = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase)
Routing\AttributeRouteTest.cs (10)
126RouteValues = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase) 170RouteValues = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase) 214RouteValues = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase) 261RouteValues = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase) 275RouteValues = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase) 329RouteValues = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase) 372RouteValues = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase) 415RouteValues = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase) 463RouteValues = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase) 477RouteValues = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase)
Routing\AttributeRoutingTest.cs (2)
119action.RouteValues = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase) 152RouteValues = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase),
Routing\ControllerActionEndpointDataSourceTest.cs (13)
28RouteValues = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase) 61RouteValues = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase) 69RouteValues = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase) 140RouteValues = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase) 148RouteValues = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase) 222RouteValues = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase) 230RouteValues = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase) 309RouteValues = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase) 317RouteValues = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase) 390RouteValues = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase) 399RouteValues = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase) 491RouteValues = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase) 499RouteValues = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase)
Routing\DynamicControllerEndpointMatcherPolicyTest.cs (3)
22RouteValues = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase) 30RouteValues = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase) 38RouteValues = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase)
Routing\UrlHelperExtensionsTest.cs (3)
265RouteValues = new Dictionary<string, string> 499RouteValues = new Dictionary<string, string> 870RouteValues = new Dictionary<string, string>
Microsoft.AspNetCore.Mvc.RazorPages (1)
ApplicationModels\CompiledPageActionDescriptorBuilder.cs (1)
56RouteValues = actionDescriptor.RouteValues,
Microsoft.AspNetCore.Mvc.RazorPages.Test (13)
ApplicationModels\CompiledPageActionDescriptorBuilderTest.cs (5)
27RouteValues = new Dictionary<string, string>(), 55RouteValues = new Dictionary<string, string>(), 106RouteValues = new Dictionary<string, string>(), 148RouteValues = new Dictionary<string, string>(), 410RouteValues = new Dictionary<string, string>(),
Infrastructure\DynamicPageEndpointMatcherPolicyTest.cs (2)
22RouteValues = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase) 30RouteValues = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase)
Infrastructure\PageActionEndpointDataSourceTest.cs (6)
29RouteValues = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase) 61RouteValues = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase) 105RouteValues = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase) 118RouteValues = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase) 183RouteValues = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase) 225RouteValues = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase)
117 references to RouteValues
Microsoft.AspNetCore.Grpc.Swagger (1)
Internal\XmlComments\GrpcXmlCommentsDocumentFilter.cs (1)
32.GroupBy(actionDesc => actionDesc.RouteValues["controller"]!)
Microsoft.AspNetCore.Mvc.ApiExplorer.Test (2)
EndpointMetadataApiDescriptionProviderTest.cs (2)
51Assert.Equal(declaringTypeName, apiDescription.ActionDescriptor.RouteValues["controller"]); 59Assert.Equal(nameof(EndpointMetadataApiDescriptionProviderTest), apiDescription.ActionDescriptor.RouteValues["controller"]);
Microsoft.AspNetCore.Mvc.Core (31)
ApplicationModels\ActionModel.cs (1)
133/// will be implicitly added to <see cref="ActionDescriptor.RouteValues"/> when the action
ApplicationModels\ControllerActionDescriptorBuilder.cs (8)
225if (!actionDescriptor.RouteValues.ContainsKey(kvp.Key)) 227actionDescriptor.RouteValues.Add(kvp.Key, kvp.Value); 234if (!actionDescriptor.RouteValues.ContainsKey(kvp.Key)) 236actionDescriptor.RouteValues.Add(kvp.Key, kvp.Value); 241if (!actionDescriptor.RouteValues.ContainsKey("action")) 243actionDescriptor.RouteValues.Add("action", action.ActionName ?? string.Empty); 246if (!actionDescriptor.RouteValues.ContainsKey("controller")) 248actionDescriptor.RouteValues.Add("controller", controller.ControllerName);
ApplicationModels\ControllerActionDescriptorProvider.cs (3)
56foreach (var key in action.RouteValues.Keys) 67if (!action.RouteValues.ContainsKey(key)) 69action.RouteValues.Add(key, null);
Infrastructure\ActionSelectionTable.cs (4)
69getRouteKeys: a => a.RouteValues?.Keys, 73a.RouteValues?.TryGetValue(key, out value); 91getRouteKeys: e => e.Metadata.GetMetadata<ActionDescriptor>()?.RouteValues?.Keys, 95e.Metadata.GetMetadata<ActionDescriptor>()?.RouteValues?.TryGetValue(key, out value);
Infrastructure\ResourceInvoker.Log.cs (4)
27var count = action.RouteValues.Count; 28foreach (var (key, value) in action.RouteValues) 42if (action.RouteValues.TryGetValue("page", out var page) && page != null) 103if (action.RouteValues.TryGetValue("page", out var page) && page != null)
Routing\ActionEndpointFactory.cs (4)
93var updatedRoutePattern = _routePatternTransformer.SubstituteRequiredValues(route.Pattern, action.RouteValues); 281foreach (var routeValue in action.RouteValues) 313resolvedRequiredValues = new Dictionary<string, string?>(action.RouteValues); 325return (attributeRoutePattern, resolvedRequiredValues ?? action.RouteValues);
Routing\AttributeRoute.cs (2)
82foreach (var kvp in routeInfo.ActionDescriptor.RouteValues) 207foreach (var kvp in action.RouteValues)
Routing\ControllerActionEndpointDataSource.cs (1)
106foreach (var kvp in action.RouteValues)
Routing\KnownRouteValueConstraint.cs (1)
103if (action.RouteValues.TryGetValue(routeKey, out var value) &&
Routing\MvcAttributeRouteHandler.cs (1)
61foreach (var kvp in actionDescriptor.RouteValues)
Routing\NormalizedRouteValue.cs (2)
19/// <see cref="Abstractions.ActionDescriptor.RouteValues"/> to get route values 35if (actionDescriptor.RouteValues.TryGetValue(key, out var value) &&
Microsoft.AspNetCore.Mvc.Core.Test (55)
ApplicationModels\ControllerActionDescriptorProviderTests.cs (26)
242Assert.NotNull(action.RouteValues); 244var controller = Assert.Single(action.RouteValues, kvp => kvp.Key.Equals("controller")); 247var actionConstraint = Assert.Single(action.RouteValues, kvp => kvp.Key.Equals("action")); 261var anonymousAction = Assert.Single(descriptors, a => a.RouteValues["action"] == "AllowAnonymousAction"); 269var authorizeAction = Assert.Single(descriptors, a => a.RouteValues["action"] == "AuthorizeAction"); 345var controller = Assert.Single(action.RouteValues, kvp => kvp.Key.Equals("controller")); 348var actionConstraint = Assert.Single(action.RouteValues, kvp => kvp.Key.Equals("action")); 362ad => !ad.RouteValues.ContainsKey("key")); 366ad => ad.RouteValues.ContainsKey("key")); 371Assert.Equal(3, descriptorWithValue.RouteValues.Count); 373descriptorWithValue.RouteValues, 378descriptorWithValue.RouteValues, 383descriptorWithValue.RouteValues, 388Assert.Equal(2, descriptorWithoutValue.RouteValues.Count); 390descriptorWithoutValue.RouteValues, 395descriptorWithoutValue.RouteValues, 903Assert.Equal(3, indexAction.RouteValues.Count); 905var controllerDefault = Assert.Single(indexAction.RouteValues, rd => rd.Key.Equals("controller", StringComparison.OrdinalIgnoreCase)); 908var actionDefault = Assert.Single(indexAction.RouteValues, rd => rd.Key.Equals("action", StringComparison.OrdinalIgnoreCase)); 911var areaDefault = Assert.Single(indexAction.RouteValues, rd => rd.Key.Equals("area", StringComparison.OrdinalIgnoreCase)); 1315Assert.True(context.Results[0].RouteValues.ContainsKey("page")); 1316Assert.Null(context.Results[0].RouteValues["page"]); 1318Assert.True(context.Results[1].RouteValues.ContainsKey("controller")); 1319Assert.Null(context.Results[1].RouteValues["controller"]); 1320Assert.True(context.Results[1].RouteValues.ContainsKey("action")); 1321Assert.Null(context.Results[1].RouteValues["action"]);
Infrastructure\ActionSelectorTest.cs (6)
1058.Where(a => a.RouteValues.Any(kvp => kvp.Key == "area" && comparer.Equals(kvp.Value, area))) 1059.Where(a => a.RouteValues.Any(kvp => kvp.Key == "controller" && comparer.Equals(kvp.Value, controller))) 1060.Where(a => a.RouteValues.Any(kvp => kvp.Key == "action" && comparer.Equals(kvp.Value, action))); 1127actionDescriptor.RouteValues.Add("area", area); 1128actionDescriptor.RouteValues.Add("controller", controller); 1129actionDescriptor.RouteValues.Add("action", action);
MvcCoreLoggerExtensionsTest.cs (3)
52action.RouteValues.Add(routeValue); 82action.RouteValues.Add(routeValue); 111action.RouteValues.Add(routeValue);
Routing\ActionEndpointFactoryTest.cs (3)
399Assert.NotNull(action.RouteValues); 415AssertIsSubset(new RouteValueDictionary(action.RouteValues), endpoint.RoutePattern.RequiredValues); 465actionDescriptor.RouteValues[kvp.Key] = kvp.Value?.ToString();
Routing\AttributeRouteTest.cs (5)
151Assert.Equal(ToRouteValueDictionary(actions[0].RouteValues), e.RequiredLinkValues); 195Assert.Equal(ToRouteValueDictionary(actions[0].RouteValues), e.RequiredLinkValues); 239Assert.Equal(ToRouteValueDictionary(actions[0].RouteValues), e.RequiredLinkValues); 300Assert.Equal(ToRouteValueDictionary(actions[0].RouteValues), e.RequiredLinkValues); 310Assert.Equal(ToRouteValueDictionary(actions[1].RouteValues), e.RequiredLinkValues);
Routing\AttributeRoutingTest.cs (3)
53action.RouteValues.Add("foo", "bleh"); 80action1.RouteValues.Add("foo", "bleh"); 83action2.RouteValues.Add("action", "hey");
Routing\ControllerActionEndpointDataSourceTest.cs (1)
569action.RouteValues[kvp.Key] = kvp.Value?.ToString();
Routing\KnownRouteValueConstraintTests.cs (8)
26actionDescriptor.RouteValues.Add("randomKey", "testRandom"); 97actionDescriptor.RouteValues.Add("randomKey", "testRandom"); 134actionDescriptor.RouteValues.Add("randomKey", "testRandom"); 219actionDescriptor.RouteValues.Add("randomKey", "testRandom"); 248actionDescriptor.RouteValues.Add("randomKey", "10/31/2018 07:37:38 -07:00"); 301actionDescriptor.RouteValues.Add("area", area); 302actionDescriptor.RouteValues.Add("controller", controller); 303actionDescriptor.RouteValues.Add("action", action);
Microsoft.AspNetCore.Mvc.Razor (2)
RazorViewEngine.cs (2)
100/// <see cref="Abstractions.ActionDescriptor.RouteValues"/> to get route values 224if (actionContext.ActionDescriptor.RouteValues.ContainsKey(PageKey))
Microsoft.AspNetCore.Mvc.Razor.Test (6)
RazorViewEngineTest.cs (6)
1612actionDescriptor.RouteValues.Add(key, "Route-Value"); 1636actionDescriptor.RouteValues.Add(key, "Route-Value"); 1659actionDescriptor.RouteValues.Add(key, "different-value"); 1682actionDescriptor.RouteValues.Add(key, null); 1893context.ActionDescriptor.RouteValues["page"] = "MyPage"; 2146actionDescriptor.RouteValues.Add(kvp.Key, kvp.Value);
Microsoft.AspNetCore.Mvc.RazorPages (6)
ApplicationModels\CompiledPageActionDescriptorBuilder.cs (1)
56RouteValues = actionDescriptor.RouteValues,
ApplicationModels\PageRouteModel.cs (1)
107/// These entries will be implicitly added to <see cref="ActionDescriptor.RouteValues"/>
Infrastructure\PageActionDescriptorProvider.cs (4)
112if (!descriptor.RouteValues.ContainsKey(kvp.Key)) 114descriptor.RouteValues.Add(kvp.Key, kvp.Value); 118if (!descriptor.RouteValues.ContainsKey("page")) 120descriptor.RouteValues.Add("page", model.ViewEnginePath);
Microsoft.AspNetCore.Mvc.RazorPages.Test (9)
ApplicationModels\CompiledPageActionDescriptorBuilderTest.cs (2)
41Assert.Same(actionDescriptor.RouteValues, actual.RouteValues);
Infrastructure\PageActionDescriptorProviderTest.cs (5)
63Assert.Equal("/Test", descriptor.RouteValues["page"]); 103descriptor.RouteValues.OrderBy(kvp => kvp.Key), 153descriptor.RouteValues.OrderBy(kvp => kvp.Key), 332Assert.Equal("/Catalog/Details/Index", descriptor.RouteValues["page"]); 339Assert.Equal("/Catalog/Details/Index", descriptor.RouteValues["page"]);
Infrastructure\PageActionEndpointDataSourceTest.cs (1)
277action.RouteValues[kvp.Key] = kvp.Value?.ToString();
Infrastructure\PageActionInvokerTest.cs (1)
1401actionDescriptor.RouteValues.Add("page", "foo");
Microsoft.AspNetCore.Mvc.ViewFeatures (2)
PartialViewResultExecutor.cs (1)
175if (actionDescriptor.RouteValues.TryGetValue(ActionNameKey, out var value) &&
ViewResultExecutor.cs (1)
175if (actionDescriptor.RouteValues.TryGetValue(ActionNameKey, out var value) &&
Microsoft.AspNetCore.OpenApi (1)
Services\OpenApiDocumentService.cs (1)
316return [new OpenApiTag { Name = description.ActionDescriptor.RouteValues["controller"] }];
Microsoft.AspNetCore.OpenApi.Tests (2)
Services\OpenApiDocumentServiceTestsBase.cs (2)
225action.RouteValues.Add("controller", "Test"); 226action.RouteValues.Add("action", action.MethodInfo.Name);