4 types derived from TempDataSerializer
Microsoft.AspNetCore.Mvc.NewtonsoftJson (1)
BsonTempDataSerializer.cs (1)
16internal sealed class BsonTempDataSerializer : TempDataSerializer
Microsoft.AspNetCore.Mvc.ViewFeatures (1)
Infrastructure\DefaultTempDataSerializer.cs (1)
9internal sealed class DefaultTempDataSerializer : TempDataSerializer
Microsoft.AspNetCore.Mvc.ViewFeatures.Test (2)
CookieTempDataProviderTest.cs (1)
459private class TestTempDataSerializer : TempDataSerializer
SessionStateTempDataProviderTest.cs (1)
140private class TestTempDataSerializer : TempDataSerializer
64 references to TempDataSerializer
Microsoft.AspNetCore.Mvc.FunctionalTests (1)
TempDataInCookiesTest.cs (1)
37var tempDataSerializers = _serviceCollection.Where(f => f.ServiceType == typeof(TempDataSerializer)).ToList();
Microsoft.AspNetCore.Mvc.NewtonsoftJson (2)
DependencyInjection\NewtonsoftJsonMvcCoreBuilderExtensions.cs (2)
76f.ServiceType == typeof(TempDataSerializer) && 84services.TryAddSingleton<TempDataSerializer, BsonTempDataSerializer>();
Microsoft.AspNetCore.Mvc.NewtonsoftJson.Test (27)
BsonTempDataSerializerTest.cs (8)
10protected override TempDataSerializer GetTempDataSerializer() => new BsonTempDataSerializer(); 96var testProvider = GetTempDataSerializer(); 117var testProvider = GetTempDataSerializer(); 138var testProvider = GetTempDataSerializer(); 160var testProvider = GetTempDataSerializer(); 181var testProvider = GetTempDataSerializer(); 210var testProvider = GetTempDataSerializer(); 232var testProvider = GetTempDataSerializer();
DependencyInjection\NewtonsoftJsonMvcCoreBuilderExtensionsTest.cs (2)
53.AddSingleton<TempDataSerializer, DefaultTempDataSerializer>(); 59var tempDataSerializer = Assert.Single(services, d => d.ServiceType == typeof(TempDataSerializer));
src\Mvc\Mvc.ViewFeatures\test\Infrastructure\TempDataSerializerTestBase.cs (17)
14var serializer = GetTempDataSerializer(); 29var testProvider = GetTempDataSerializer(); 53var testProvider = GetTempDataSerializer(); 75var testProvider = GetTempDataSerializer(); 96var testProvider = GetTempDataSerializer(); 117var testProvider = GetTempDataSerializer(); 138var testProvider = GetTempDataSerializer(); 158var testProvider = GetTempDataSerializer(); 180var testProvider = GetTempDataSerializer(); 202var testProvider = GetTempDataSerializer(); 224var testProvider = GetTempDataSerializer(); 245var testProvider = GetTempDataSerializer(); 266var testProvider = GetTempDataSerializer(); 287var testProvider = GetTempDataSerializer(); 308var testProvider = GetTempDataSerializer(); 333var testProvider = GetTempDataSerializer(); 353protected abstract TempDataSerializer GetTempDataSerializer();
Microsoft.AspNetCore.Mvc.RazorPages (2)
ApplicationModels\TempDataFilterPageApplicationModelProvider.cs (2)
12private readonly TempDataSerializer _tempDataSerializer; 14public TempDataFilterPageApplicationModelProvider(TempDataSerializer tempDataSerializer)
Microsoft.AspNetCore.Mvc.ViewFeatures (11)
CookieTempDataProvider.cs (3)
27private readonly TempDataSerializer _tempDataSerializer; 37/// <param name="tempDataSerializer">The <see cref="TempDataSerializer"/>.</param> 42TempDataSerializer tempDataSerializer)
DependencyInjection\MvcViewFeaturesMvcCoreBuilderExtensions.cs (1)
196services.TryAddSingleton<TempDataSerializer, DefaultTempDataSerializer>();
Filters\SaveTempDataPropertyFilterBase.cs (2)
83TempDataSerializer tempDataSerializer, 120private static bool ValidateProperty(TempDataSerializer tempDataSerializer, List<string> errorMessages, PropertyInfo property)
Filters\TempDataApplicationModelProvider.cs (2)
11private readonly TempDataSerializer _tempDataSerializer; 13public TempDataApplicationModelProvider(TempDataSerializer tempDataSerializer)
SessionStateTempDataProvider.cs (3)
16private readonly TempDataSerializer _tempDataSerializer; 21/// <param name="tempDataSerializer">The <see cref="TempDataSerializer"/>.</param> 22public SessionStateTempDataProvider(TempDataSerializer tempDataSerializer)
Microsoft.AspNetCore.Mvc.ViewFeatures.Test (21)
Infrastructure\DefaultTempDataSerializerTest.cs (3)
8protected override TempDataSerializer GetTempDataSerializer() => new DefaultTempDataSerializer(); 18var testProvider = GetTempDataSerializer(); 39var testProvider = GetTempDataSerializer();
Infrastructure\TempDataSerializerTestBase.cs (17)
14var serializer = GetTempDataSerializer(); 29var testProvider = GetTempDataSerializer(); 53var testProvider = GetTempDataSerializer(); 75var testProvider = GetTempDataSerializer(); 96var testProvider = GetTempDataSerializer(); 117var testProvider = GetTempDataSerializer(); 138var testProvider = GetTempDataSerializer(); 158var testProvider = GetTempDataSerializer(); 180var testProvider = GetTempDataSerializer(); 202var testProvider = GetTempDataSerializer(); 224var testProvider = GetTempDataSerializer(); 245var testProvider = GetTempDataSerializer(); 266var testProvider = GetTempDataSerializer(); 287var testProvider = GetTempDataSerializer(); 308var testProvider = GetTempDataSerializer(); 333var testProvider = GetTempDataSerializer(); 353protected abstract TempDataSerializer GetTempDataSerializer();
ViewComponentResultTest.cs (1)
677services.AddSingleton<TempDataSerializer, DefaultTempDataSerializer>();