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