65 writes to RouteData
Microsoft.AspNetCore.Mvc.Abstractions (1)
ActionContext.cs (1)
73RouteData = routeData;
Microsoft.AspNetCore.Mvc.Core.Test (23)
ControllerBaseTest.cs (1)
3054controller.ControllerContext.RouteData = routeData;
Controllers\ControllerBinderDelegateProviderTest.cs (1)
1261RouteData = new RouteData(),
Infrastructure\ControllerActionInvokerProviderTest.cs (1)
31RouteData = new RouteData(),
ModelBinding\UnsupportedContentTypeFilterTest.cs (4)
21RouteData = new RouteData(), 54RouteData = new RouteData(), 80RouteData = new RouteData(), 104RouteData = new RouteData(),
RedirectToPageResultTest.cs (2)
87RouteData = new RouteData(), 144RouteData = new RouteData(),
Routing\UrlHelperExtensionsTest.cs (13)
28RouteData = routeData, 220RouteData = routeData, 270RouteData = routeData, 312RouteData = routeData, 360RouteData = routeData, 403RouteData = routeData, 504RouteData = new RouteData 541RouteData = new RouteData(), 572RouteData = routeData, 725RouteData = new RouteData 773RouteData = new RouteData 821RouteData = new RouteData 875RouteData = new RouteData
Routing\UrlHelperTestBase.cs (1)
1083RouteData = new RouteData(new RouteValueDictionary()),
Microsoft.AspNetCore.Mvc.IntegrationTests (2)
BindPropertyIntegrationTest.cs (1)
231RouteData = testContext.RouteData,
ModelBindingTestHelper.cs (1)
39RouteData = new RouteData(),
Microsoft.AspNetCore.Mvc.Razor.Test (5)
RazorViewEngineTest.cs (5)
1617RouteData = new RouteData() 1641RouteData = new RouteData() 1664RouteData = new RouteData() 1687RouteData = new RouteData() 1714RouteData = new RouteData()
Microsoft.AspNetCore.Mvc.RazorPages.Test (28)
Filters\PageSaveTempDataPropertyFilterTest.cs (3)
63RouteData = new RouteData(), 104RouteData = new RouteData(), 144RouteData = new RouteData(),
Infrastructure\DefaultPageHandlerMethodSelectorTest.cs (15)
36RouteData = new RouteData(), 84RouteData = new RouteData(), 135RouteData = new RouteData(), 179RouteData = new RouteData(), 215RouteData = new RouteData(), 258RouteData = new RouteData(), 302RouteData = new RouteData 352RouteData = new RouteData 403RouteData = new RouteData 453RouteData = new RouteData(), 498RouteData = new RouteData 549RouteData = new RouteData(), 593RouteData = new RouteData 649RouteData = new RouteData(), 703RouteData = new RouteData
Infrastructure\PageActionInvokerProviderTest.cs (9)
57RouteData = new RouteData(), 119RouteData = new RouteData(), 185RouteData = new RouteData(), 217RouteData = new RouteData(), 233RouteData = new RouteData(), 263RouteData = new RouteData(), 297RouteData = new RouteData(), 334RouteData = new RouteData(), 351RouteData = new RouteData(),
Infrastructure\PageActionInvokerTest.cs (1)
1508RouteData = routeData ?? new RouteData(),
Microsoft.AspNetCore.Mvc.TagHelpers.Test (1)
FormActionTagHelperTest.cs (1)
479RouteData = new RouteData(),
Microsoft.AspNetCore.Mvc.ViewFeatures.Test (5)
ControllerUnitTestabilityTests.cs (1)
602RouteData = routeData,
Filters\ControllerSaveTempDataPropertyFilterTest.cs (4)
42RouteData = new RouteData(), 88RouteData = new RouteData(), 131RouteData = new RouteData(), 170RouteData = new RouteData(),
53 references to RouteData
BasicWebSite (1)
src\Mvc\test\WebSites\Common\TestResponseGenerator.cs (1)
45routeValues = new Dictionary<string, object>(_actionContext.RouteData.Values),
GenericHostWebSite (1)
src\Mvc\test\WebSites\Common\TestResponseGenerator.cs (1)
45routeValues = new Dictionary<string, object>(_actionContext.RouteData.Values),
Microsoft.AspNetCore.Mvc.Abstractions (1)
ActionContext.cs (1)
34actionContext.RouteData,
Microsoft.AspNetCore.Mvc.Core (10)
ControllerBase.cs (1)
52public RouteData RouteData => ControllerContext.RouteData;
Formatters\FormatFilter.cs (1)
39if (context.RouteData.Values.TryGetValue("format", out var obj))
Infrastructure\ResourceInvoker.cs (2)
107actionContext.RouteData); 137actionContext.RouteData);
ModelBinding\RouteValueProviderFactory.cs (1)
20context.ActionContext.RouteData.Values);
Routing\NormalizedRouteValue.cs (2)
17/// The casing of a route value in <see cref="ActionContext.RouteData"/> is determined by the client. 27if (!context.RouteData.Values.TryGetValue(key, out var routeValue))
Routing\UrlHelper.cs (1)
38var routers = ActionContext.RouteData.Routers;
Routing\UrlHelperBase.cs (1)
34AmbientValues = actionContext.RouteData.Values;
UrlHelperExtensions.cs (1)
479var ambientValues = urlHelper.ActionContext.RouteData.Values;
Microsoft.AspNetCore.Mvc.Core.Test (10)
Formatters\FormatFilterTest.cs (1)
309context.RouteData.Values["format"] = new DateTimeOffset(2018, 10, 31, 7, 37, 38, TimeSpan.FromHours(-7));
RedirectToPageResultTest.cs (1)
91pageContext.RouteData.Values.Add("page", "/A/Redirecting/Page");
Routing\EndpointRoutingUrlHelperTest.cs (1)
87urlHelper.ActionContext.RouteData.Values["id"] = "500";
Routing\UrlHelperTest.cs (4)
25actionContext.RouteData.Routers.Add(defaultRoutes); 40actionContext.RouteData.Routers.Add(router); 56actionContext.RouteData.Routers.Add(router); 79actionContext.RouteData.Routers.Add(router);
Routing\UrlHelperTestBase.cs (3)
963var routeData = urlHelper.ActionContext.RouteData; 1001var routeData = urlHelper.ActionContext.RouteData; 1042var routeData = urlHelper.ActionContext.RouteData;
Microsoft.AspNetCore.Mvc.IntegrationTests (1)
BindPropertyIntegrationTest.cs (1)
231RouteData = testContext.RouteData,
Microsoft.AspNetCore.Mvc.Razor (1)
RazorViewEngine.cs (1)
98/// The casing of a route value in <see cref="ActionContext.RouteData"/> is determined by the client.
Microsoft.AspNetCore.Mvc.Razor.Test (5)
RazorViewEngineTest.cs (5)
1620actionContext.RouteData.Values[key] = "route-value"; 1644actionContext.RouteData.Values[key] = new DateTimeOffset(2018, 10, 31, 7, 37, 38, TimeSpan.FromHours(-7)); 1667actionContext.RouteData.Values[key] = "route-value"; 1690actionContext.RouteData.Values[key] = "route-value"; 1717actionContext.RouteData.Values[key] = 43;
Microsoft.AspNetCore.Mvc.RazorPages (3)
Infrastructure\DefaultPageHandlerMethodSelector.cs (1)
149var handlerName = Convert.ToString(context.RouteData.Values[Handler], CultureInfo.InvariantCulture);
PageBase.cs (1)
57public RouteData RouteData => PageContext.RouteData;
PageModel.cs (1)
76public RouteData RouteData => PageContext.RouteData;
Microsoft.AspNetCore.Mvc.RazorPages.Test (2)
Infrastructure\PageActionInvokerProviderTest.cs (2)
143Assert.Same(context.ActionContext.RouteData, pageContext.RouteData);
Microsoft.AspNetCore.Mvc.TagHelpers (1)
Cache\CacheTagKey.cs (1)
93tagHelper.ViewContext.RouteData.Values,
Microsoft.AspNetCore.Mvc.TagHelpers.Test (4)
CacheTagKeyTest.cs (4)
291cacheTagHelper.ViewContext.RouteData.Values["id"] = 4; 292cacheTagHelper.ViewContext.RouteData.Values["category"] = "MyCategory"; 314cacheTagHelper.ViewContext.RouteData.Values["id"] = 4; 315cacheTagHelper.ViewContext.RouteData.Values["category"] =
Microsoft.AspNetCore.Mvc.ViewFeatures (3)
PartialViewResultExecutor.cs (1)
168if (!context.RouteData.Values.TryGetValue(ActionNameKey, out var routeValue))
ViewComponent.cs (1)
54public RouteData RouteData => ViewContext?.RouteData!;
ViewResultExecutor.cs (1)
168if (!context.RouteData.Values.TryGetValue(ActionNameKey, out var routeValue))
Microsoft.AspNetCore.Mvc.ViewFeatures.Test (6)
ControllerUnitTestabilityTests.cs (2)
571Assert.Null(controller.ControllerContext.RouteData); 586Assert.Equal(controllerContext.RouteData, controller.RouteData);
PartialViewResultExecutorTest.cs (1)
83context.RouteData.Values["action"] = new DateTimeOffset(2018, 10, 31, 7, 37, 38, TimeSpan.FromHours(-7));
Rendering\ViewContextTests.cs (2)
71Assert.Same(originalContext.RouteData, context.RouteData);
ViewResultExecutorTest.cs (1)
82context.RouteData.Values["action"] = new DateTimeOffset(2018, 10, 31, 7, 37, 38, TimeSpan.FromHours(-7));
Mvc.RoutingWebSite (3)
Controllers\RouteDataController.cs (2)
30if (!context.RouteData.DataTokens.ContainsKey("actionName")) 32context.RouteData.DataTokens.Add("actionName", ((ControllerActionDescriptor)context.ActionDescriptor).ActionName);
src\Mvc\test\WebSites\Common\TestResponseGenerator.cs (1)
45routeValues = new Dictionary<string, object>(_actionContext.RouteData.Values),
VersioningWebSite (1)
src\Mvc\test\WebSites\Common\TestResponseGenerator.cs (1)
45routeValues = new Dictionary<string, object>(_actionContext.RouteData.Values),