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