1 implementation of ITempDataDictionaryFactory
Microsoft.AspNetCore.Mvc.ViewFeatures (1)
TempDataDictionaryFactory.cs (1)
11
public class TempDataDictionaryFactory :
ITempDataDictionaryFactory
54 references to ITempDataDictionaryFactory
BasicWebSite (2)
StoreIntoTempDataActionResult.cs (2)
15
var
tempDataDictionaryFactory = httpContext.RequestServices.GetRequiredService<
ITempDataDictionaryFactory
>();
Microsoft.AspNetCore.Mvc.RazorPages (10)
Filters\PageSaveTempDataPropertyFilter.cs (1)
11
public PageSaveTempDataPropertyFilter(
ITempDataDictionaryFactory
factory)
Infrastructure\PageActionInvoker.cs (2)
20
private readonly
ITempDataDictionaryFactory
_tempDataFactory;
43
ITempDataDictionaryFactory
tempDataFactory,
Infrastructure\PageActionInvokerProvider.cs (2)
22
private readonly
ITempDataDictionaryFactory
_tempDataFactory;
34
ITempDataDictionaryFactory
tempDataFactory,
Infrastructure\PageRequestDelegateFactory.cs (3)
23
private readonly
ITempDataDictionaryFactory
_tempDataFactory;
35
ITempDataDictionaryFactory
tempDataFactory,
49
ITempDataDictionaryFactory
tempDataFactory,
PageModel.cs (2)
97
var
factory = HttpContext?.RequestServices?.GetRequiredService<
ITempDataDictionaryFactory
>();
Microsoft.AspNetCore.Mvc.RazorPages.Test (5)
Filters\PageSaveTempDataPropertyFilterFactoryTest.cs (1)
36
serviceCollection.AddSingleton<
ITempDataDictionaryFactory
, TempDataDictionaryFactory>();
Filters\PageSaveTempDataPropertyFilterTest.cs (1)
192
var factory = new Mock<
ITempDataDictionaryFactory
>();
Infrastructure\PageActionInvokerProviderTest.cs (1)
499
var tempDataFactory = new Mock<
ITempDataDictionaryFactory
>();
Infrastructure\PageActionInvokerTest.cs (2)
1485
ITempDataDictionaryFactory
tempDataFactory = null,
1518
tempDataFactory = Mock.Of<
ITempDataDictionaryFactory
>(m => m.GetTempData(It.IsAny<HttpContext>()) == Mock.Of<ITempDataDictionary>());
Microsoft.AspNetCore.Mvc.ViewFeatures (23)
Controller.cs (2)
71
var
factory = HttpContext?.RequestServices?.GetRequiredService<
ITempDataDictionaryFactory
>();
DependencyInjection\MvcViewFeaturesMvcCoreBuilderExtensions.cs (1)
207
services.TryAddSingleton<
ITempDataDictionaryFactory
, TempDataDictionaryFactory>();
Filters\ControllerSaveTempDataPropertyFilter.cs (1)
10
public ControllerSaveTempDataPropertyFilter(
ITempDataDictionaryFactory
factory)
Filters\SaveTempDataFilter.cs (5)
18
private readonly
ITempDataDictionaryFactory
_factory;
23
/// <param name="factory">The <see cref="
ITempDataDictionaryFactory
"/>.</param>
24
public SaveTempDataFilter(
ITempDataDictionaryFactory
factory)
129
ITempDataDictionaryFactory
factory,
156
public
ITempDataDictionaryFactory
TempDataDictionaryFactory { get; set; }
Filters\SaveTempDataPropertyFilterBase.cs (2)
13
protected readonly
ITempDataDictionaryFactory
_tempDataFactory;
15
public SaveTempDataPropertyFilterBase(
ITempDataDictionaryFactory
tempDataFactory)
PartialViewResultExecutor.cs (2)
31
/// <param name="tempDataFactory">The <see cref="
ITempDataDictionaryFactory
"/>.</param>
39
ITempDataDictionaryFactory
tempDataFactory,
TempDataDictionaryFactory.cs (1)
9
/// A default implementation of <see cref="
ITempDataDictionaryFactory
"/>.
ViewComponentResultExecutor.cs (3)
32
private readonly
ITempDataDictionaryFactory
_tempDataDictionaryFactory;
42
/// <param name="tempDataDictionaryFactory">The <see cref="
ITempDataDictionaryFactory
"/>.</param>
49
ITempDataDictionaryFactory
tempDataDictionaryFactory,
ViewExecutor.cs (4)
35
/// <param name="tempDataFactory">The <see cref="
ITempDataDictionaryFactory
"/>.</param>
42
ITempDataDictionaryFactory
tempDataFactory,
82
/// Gets the <see cref="
ITempDataDictionaryFactory
"/>.
84
protected
ITempDataDictionaryFactory
? TempDataFactory { get; }
ViewResultExecutor.cs (2)
31
/// <param name="tempDataFactory">The <see cref="
ITempDataDictionaryFactory
"/>.</param>
39
ITempDataDictionaryFactory
tempDataFactory,
Microsoft.AspNetCore.Mvc.ViewFeatures.Test (14)
Filters\ControllerSaveTempDataPropertyFilterFactoryTest.cs (1)
32
serviceCollection.AddSingleton<
ITempDataDictionaryFactory
, TempDataDictionaryFactory>();
Filters\ControllerSaveTempDataPropertyFilterTest.cs (1)
203
var factory = new Mock<
ITempDataDictionaryFactory
>();
Filters\SaveTempDataFilterTest.cs (8)
34
var tempDataFactory = new Mock<
ITempDataDictionaryFactory
>(MockBehavior.Loose);
59
var tempDataFactory = new Mock<
ITempDataDictionaryFactory
>(MockBehavior.Strict);
82
var tempDataFactory = new Mock<
ITempDataDictionaryFactory
>(MockBehavior.Strict);
103
var tempDataFactory = new Mock<
ITempDataDictionaryFactory
>(MockBehavior.Strict);
125
var tempDataFactory = new Mock<
ITempDataDictionaryFactory
>(MockBehavior.Strict);
205
var tempDataFactory = new Mock<
ITempDataDictionaryFactory
>(MockBehavior.Strict);
274
private Mock<
ITempDataDictionaryFactory
> GetTempDataDictionaryFactory(ITempDataDictionary tempDataDictionary)
276
var tempDataFactory = new Mock<
ITempDataDictionaryFactory
>(MockBehavior.Strict);
PartialViewResultExecutorTest.cs (1)
365
Mock.Of<
ITempDataDictionaryFactory
>(),
PartialViewResultTest.cs (1)
239
Mock.Of<
ITempDataDictionaryFactory
>(),
ViewComponentResultTest.cs (1)
675
services.AddSingleton<
ITempDataDictionaryFactory
, TempDataDictionaryFactory>();
ViewResultTest.cs (1)
251
Mock.Of<
ITempDataDictionaryFactory
>(),