1 write to Items
Microsoft.AspNetCore.Razor.Runtime (1)
Runtime\TagHelpers\TagHelperExecutionContext.cs (1)
188
Items
= items;
23 references to Items
Microsoft.AspNetCore.Razor.Runtime (2)
Runtime\TagHelpers\TagHelperExecutionContext.cs (1)
194
Context.Reinitialize(tagName,
Items
, uniqueId);
Runtime\TagHelpers\TagHelperScopeManager.cs (1)
60
parentExecutionContext.
Items
,
Microsoft.AspNetCore.Razor.Runtime.Test (21)
Runtime\TagHelpers\TagHelperExecutionContextTest.cs (2)
225
Assert.NotNull(executionContext.
Items
);
226
Assert.Same(expectedItems, executionContext.
Items
);
Runtime\TagHelpers\TagHelperRunnerTest.cs (1)
203
Assert.Same(tagHelper.ContextProcessedWith.Items, executionContext.
Items
);
Runtime\TagHelpers\TagHelperScopeManagerTest.cs (18)
19
executionContext.
Items
["test-entry"] = 1234;
22
var executionContextItem = Assert.Single(executionContext.
Items
);
33
parentExecutionContext.
Items
["test-entry"] = 1234;
39
var executionContextItem = Assert.Single(executionContext.
Items
);
51
parentExecutionContext.
Items
["test-entry"] = parentComplexObject;
55
((Dictionary<string, int>)executionContext.
Items
["test-entry"]).Add("from-child", 1234);
58
var executionContextItem = Assert.Single(executionContext.
Items
);
72
parentExecutionContext.
Items
["test-entry"] = 1234;
76
executionContext.
Items
["test-entry"] = 2222;
79
var executionContextItem = Assert.Single(executionContext.
Items
);
82
var parentExecutionContextItem = Assert.Single(parentExecutionContext.
Items
);
96
executionContext.
Items
["new-entry"] = 2222;
99
var executionContextItem = Assert.Single(executionContext.
Items
);
102
Assert.Empty(parentExecutionContext.
Items
);
111
parentExecutionContext.
Items
["test-entry"] = 1234;
115
executionContext.
Items
.Remove("test-entry");
118
Assert.Empty(executionContext.
Items
);
119
var parentExecutionContextItem = Assert.Single(parentExecutionContext.
Items
);