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