11 references to Customer
Microsoft.Extensions.Caching.Hybrid.Tests (11)
ServiceConstructionTests.cs (11)
462Assert.IsType<DefaultJsonSerializerFactory.DefaultJsonSerializer<Customer>>(cache.GetSerializer<Customer>()); 470services.AddHybridCache().AddSerializer<Customer, CustomerSerializer>(); 474Assert.IsType<CustomerSerializer>(cache.GetSerializer<Customer>()); 486Assert.IsType<CustomerSerializer>(cache.GetSerializer<Customer>()); 670private class CustomerSerializer : IHybridCacheSerializer<Customer> 672Customer IHybridCacheSerializer<Customer>.Deserialize(ReadOnlySequence<byte> source) => throw new NotSupportedException(); 673void IHybridCacheSerializer<Customer>.Serialize(Customer value, IBufferWriter<byte> target) => throw new NotSupportedException(); 680if (typeof(T) == typeof(Customer))