1 implementation of ITempDataDictionary
Microsoft.AspNetCore.Mvc.ViewFeatures (1)
TempDataDictionary.cs (1)
18public class TempDataDictionary : ITempDataDictionary
125 references to ITempDataDictionary
BasicWebSite (1)
StoreIntoTempDataActionResult.cs (1)
16var tempDataDictionary = tempDataDictionaryFactory.GetTempData(httpContext);
Microsoft.AspNetCore.Mvc.Razor (2)
RazorPageBase.cs (2)
137/// Gets the <see cref="ITempDataDictionary"/> from the <see cref="ViewContext"/>. 140public ITempDataDictionary TempData => ViewContext?.TempData!;
Microsoft.AspNetCore.Mvc.Razor.Test (7)
DefaultTagHelperFactoryTest.cs (1)
162Mock.Of<ITempDataDictionary>(),
Infrastructure\DefaultTagHelperActivatorTest.cs (1)
48Mock.Of<ITempDataDictionary>(),
RazorPageActivatorTest.cs (1)
264Mock.Of<ITempDataDictionary>(),
RazorPageCreateModelExpressionTest.cs (1)
328Mock.Of<ITempDataDictionary>(),
RazorPageCreateTagHelperTest.cs (1)
99Mock.Of<ITempDataDictionary>(),
RazorPageTest.cs (1)
1432Mock.Of<ITempDataDictionary>(),
RazorViewTest.cs (1)
1798Mock.Of<ITempDataDictionary>(),
Microsoft.AspNetCore.Mvc.RazorPages (3)
PageModel.cs (3)
31private ITempDataDictionary? _tempData; 89/// Gets or sets <see cref="ITempDataDictionary"/> used by <see cref="PageResult"/>. 91public ITempDataDictionary TempData
Microsoft.AspNetCore.Mvc.RazorPages.Test (3)
Infrastructure\PageActionInvokerTest.cs (1)
1518tempDataFactory = Mock.Of<ITempDataDictionaryFactory>(m => m.GetTempData(It.IsAny<HttpContext>()) == Mock.Of<ITempDataDictionary>());
PageTest.cs (2)
27var tempData = Mock.Of<ITempDataDictionary>();
Microsoft.AspNetCore.Mvc.TagHelpers.Test (11)
CacheTagHelperTest.cs (1)
936Mock.Of<ITempDataDictionary>(),
CacheTagKeyTest.cs (1)
544Mock.Of<ITempDataDictionary>(),
DistributedCacheTagHelperTest.cs (1)
742Mock.Of<ITempDataDictionary>(),
FormTagHelperTest.cs (1)
1165Mock.Of<ITempDataDictionary>(),
ImageTagHelperTest.cs (1)
305Mock.Of<ITempDataDictionary>(),
LinkTagHelperTest.cs (1)
1136Mock.Of<ITempDataDictionary>(),
PartialTagHelperTest.cs (1)
844Mock.Of<ITempDataDictionary>(),
ScriptTagHelperTest.cs (1)
1117Mock.Of<ITempDataDictionary>(),
TestableHtmlGenerator.cs (1)
87Mock.Of<ITempDataDictionary>(),
ValidationMessageTagHelperTest.cs (1)
476Mock.Of<ITempDataDictionary>(),
ValidationSummaryTagHelperTest.cs (1)
660Mock.Of<ITempDataDictionary>(),
Microsoft.AspNetCore.Mvc.ViewFeatures (50)
Controller.cs (3)
19private ITempDataDictionary? _tempData; 63/// Gets or sets <see cref="ITempDataDictionary"/> used by <see cref="ViewResult"/>. 65public ITempDataDictionary TempData
CookieTempDataProvider.cs (1)
15/// Provides data from cookie to the current <see cref="ITempDataDictionary"/> object.
Filters\ControllerSaveTempDataPropertyFilter.cs (1)
23var tempData = _tempDataFactory.GetTempData(context.HttpContext);
Filters\ISaveTempDataCallback.cs (1)
10void OnTempDataSaving(ITempDataDictionary tempData);
Filters\SaveTempDataFilter.cs (1)
133var tempData = factory.GetTempData(httpContext);
Filters\SaveTempDataPropertyFilterBase.cs (4)
38/// <param name="tempData">The <see cref="ITempDataDictionary"/> to be updated.</param> 39public void OnTempDataSaving(ITempDataDictionary tempData) 62/// <param name="tempData">The <see cref="ITempDataDictionary"/>.</param> 63protected void SetPropertyValues(ITempDataDictionary tempData)
HtmlHelper.cs (1)
116public ITempDataDictionary TempData => ViewContext.TempData;
Infrastructure\TempDataSerializer.cs (5)
7/// Serializes and deserializes the contents of <see cref="ITempDataDictionary"/>. 13/// used to initialize an instance of <see cref="ITempDataDictionary"/>. 15/// <param name="unprotectedData">Serialized representation of <see cref="ITempDataDictionary"/>.</param> 20/// Serializes the contents of <see cref="ITempDataDictionary"/>. 22/// <param name="values">The contents of <see cref="ITempDataDictionary"/>.</param>
ITempDataDictionaryFactory.cs (4)
9/// A factory which provides access to an <see cref="ITempDataDictionary"/> instance 15/// Gets or creates an <see cref="ITempDataDictionary"/> instance for the request associated with the 20/// An <see cref="ITempDataDictionary"/> instance for the request associated with the given 23ITempDataDictionary GetTempData(HttpContext context);
PartialViewResult.cs (2)
43/// Gets or sets the <see cref="ITempDataDictionary"/> used for rendering the view for this result. 45public ITempDataDictionary TempData { get; set; } = default!;
Rendering\IHtmlHelper.cs (2)
49/// Gets the current <see cref="ITempDataDictionary"/> instance. 51ITempDataDictionary TempData { get; }
Rendering\ViewContext.cs (4)
44/// <param name="tempData">The <see cref="ITempDataDictionary"/>.</param> 51ITempDataDictionary tempData, 186/// Gets or sets the <see cref="ITempDataDictionary"/> instance. 188public ITempDataDictionary TempData { get; set; }
SaveTempDataAttribute.cs (1)
13/// A filter that saves the <see cref="ITempDataDictionary"/> for a request.
SessionStateTempDataProvider.cs (1)
10/// Provides session-state data to the current <see cref="ITempDataDictionary"/> object.
TempDataAttribute.cs (2)
12/// and loaded from the <see cref="ITempDataDictionary"/>. <see cref="TempDataAttribute"/> 19/// Gets or sets the key used to get or add the property from value from <see cref="ITempDataDictionary"/>.
TempDataDictionaryFactory.cs (4)
13private static readonly object Key = typeof(ITempDataDictionary); 29public ITempDataDictionary GetTempData(HttpContext context) 34ITempDataDictionary result; 37result = (ITempDataDictionary)obj;
ViewComponent.cs (2)
137/// Gets the <see cref="ITempDataDictionary"/>. 139public ITempDataDictionary TempData => ViewComponentContext.TempData;
ViewComponentResult.cs (2)
49/// Gets or sets the <see cref="ITempDataDictionary"/> for this result. 51public ITempDataDictionary TempData { get; set; } = default!;
ViewComponentResultExecutor.cs (1)
80var tempData = result.TempData;
ViewComponents\ViewComponentContext.cs (2)
106/// Gets the <see cref="ITempDataDictionary"/>. 111public ITempDataDictionary TempData => ViewContext.TempData;
ViewComponents\ViewViewComponentResult.cs (2)
37/// Gets or sets the <see cref="ITempDataDictionary"/> instance. 39public ITempDataDictionary TempData { get; set; } = default!;
ViewExecutor.cs (2)
112/// <param name="tempData">The <see cref="ITempDataDictionary"/>.</param> 125ITempDataDictionary tempData,
ViewResult.cs (2)
43/// Gets or sets the <see cref="ITempDataDictionary"/> for this result. 45public ITempDataDictionary TempData { get; set; } = default!;
Microsoft.AspNetCore.Mvc.ViewFeatures.Test (48)
DefaultEditorTemplatesTest.cs (1)
1394public ITempDataDictionary TempData
DefaultHtmlGeneratorTest.cs (1)
1043Mock.Of<ITempDataDictionary>(),
DefaultValidationHtmlAttributeProviderTest.cs (1)
263Mock.Of<ITempDataDictionary>(),
Filters\SaveTempDataFilterTest.cs (4)
268private SaveTempDataFilter GetFilter(ITempDataDictionary tempDataDictionary) 274private Mock<ITempDataDictionaryFactory> GetTempDataDictionaryFactory(ITempDataDictionary tempDataDictionary) 283private Mock<ITempDataDictionary> GetTempDataDictionary() 285var tempDataDictionary = new Mock<ITempDataDictionary>(MockBehavior.Strict);
PartialViewResultExecutorTest.cs (10)
44TempData = Mock.Of<ITempDataDictionary>(), 66TempData = Mock.Of<ITempDataDictionary>(), 90TempData = Mock.Of<ITempDataDictionary>(), 123TempData = Mock.Of<ITempDataDictionary>(), 158TempData = Mock.Of<ITempDataDictionary>(), 193TempData = Mock.Of<ITempDataDictionary>(), 221TempData = Mock.Of<ITempDataDictionary>(), 264TempData = Mock.Of<ITempDataDictionary>(), 294TempData = Mock.Of<ITempDataDictionary>(), 323TempData = Mock.Of<ITempDataDictionary>(),
PartialViewResultTest.cs (4)
88TempData = Mock.Of<ITempDataDictionary>(), 126TempData = Mock.Of<ITempDataDictionary>(), 166TempData = Mock.Of<ITempDataDictionary>(), 215TempData = Mock.Of<ITempDataDictionary>(),
TempDataDictionaryFactoryTest.cs (4)
20var tempData1 = factory.GetTempData(context1); 23var tempData2 = factory.GetTempData(context2); 37var tempData1 = factory.GetTempData(context); 40var tempData2 = factory.GetTempData(context);
ViewComponentResultTest.cs (1)
30private readonly ITempDataDictionary _tempDataDictionary =
ViewComponents\ViewViewComponentResultTest.cs (1)
22private readonly ITempDataDictionary _tempDataDictionary =
ViewExecutorTest.cs (7)
109Mock.Of<ITempDataDictionary>(), 150Mock.Of<ITempDataDictionary>(), 165serviceCollection.AddSingleton<ITempDataDictionary>(new TempDataDictionary(httpContext, tempDataProvider)); 241Mock.Of<ITempDataDictionary>(), 281Mock.Of<ITempDataDictionary>(), 324Mock.Of<ITempDataDictionary>(), 365Mock.Of<ITempDataDictionary>(),
ViewResultExecutorTest.cs (10)
43TempData = Mock.Of<ITempDataDictionary>(), 65TempData = Mock.Of<ITempDataDictionary>(), 89TempData = Mock.Of<ITempDataDictionary>(), 121TempData = Mock.Of<ITempDataDictionary>(), 155TempData = Mock.Of<ITempDataDictionary>(), 189TempData = Mock.Of<ITempDataDictionary>(), 217TempData = Mock.Of<ITempDataDictionary>(), 259TempData = Mock.Of<ITempDataDictionary>(), 289TempData = Mock.Of<ITempDataDictionary>(), 313TempData = Mock.Of<ITempDataDictionary>(),
ViewResultTest.cs (4)
98TempData = Mock.Of<ITempDataDictionary>(), 138TempData = Mock.Of<ITempDataDictionary>(), 178TempData = Mock.Of<ITempDataDictionary>(), 227TempData = Mock.Of<ITempDataDictionary>(),