1 write to DataTokens
Microsoft.AspNetCore.Routing (1)
RouteBase.cs (1)
47DataTokens = dataTokens ?? new RouteValueDictionary();
15 references to DataTokens
Microsoft.AspNetCore.Mvc.Core.Test (6)
Builder\MvcAreaRouteBuilderExtensionsTest.cs (6)
35Assert.Empty(route.DataTokens); 70Assert.Empty(route.DataTokens); 116Assert.Empty(route.DataTokens); 164route.DataTokens.OrderBy(kvp => kvp.Key), 212route.DataTokens.OrderBy(kvp => kvp.Key), 259Assert.Empty(route.DataTokens);
Microsoft.AspNetCore.Routing (4)
RouteBase.cs (4)
123if (DataTokens.Count > 0) 125MergeValues(context.RouteData.DataTokens, DataTokens); 187if (DataTokens != null) 189foreach (var dataToken in DataTokens)
Microsoft.AspNetCore.Routing.Tests (5)
RouteTest.cs (5)
447Assert.Single(route.DataTokens); 448Assert.Single(route.DataTokens, kvp => kvp.Key == "culture" && ((string)kvp.Value) == "en-CA"); 1578Assert.Equal(expectedDictionary.Count, templateRoute.DataTokens.Count); 1581Assert.True(templateRoute.DataTokens.ContainsKey(expectedKey)); 1582Assert.Equal(expectedDictionary[expectedKey], templateRoute.DataTokens[expectedKey]);