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