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