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