11 references to Customer
Microsoft.Extensions.Caching.Hybrid.Tests (11)
ServiceConstructionTests.cs (11)
122
Assert.IsType<DefaultJsonSerializerFactory.DefaultJsonSerializer<
Customer
>>(cache.GetSerializer<
Customer
>());
130
services.AddHybridCache().AddSerializer<
Customer
, CustomerSerializer>();
134
Assert.IsType<CustomerSerializer>(cache.GetSerializer<
Customer
>());
146
Assert.IsType<CustomerSerializer>(cache.GetSerializer<
Customer
>());
241
private class CustomerSerializer : IHybridCacheSerializer<
Customer
>
243
Customer
IHybridCacheSerializer<
Customer
>.Deserialize(ReadOnlySequence<byte> source) => throw new NotSupportedException();
244
void IHybridCacheSerializer<
Customer
>.Serialize(
Customer
value, IBufferWriter<byte> target) => throw new NotSupportedException();
251
if (typeof(T) == typeof(
Customer
))