8 references to Throw
Microsoft.Extensions.Caching.Hybrid (8)
HybridCacheBuilderExtensions.cs (4)
22
_ =
Throw
.IfNull(builder).Services.AddSingleton<IHybridCacheSerializer<T>>(serializer);
36
_ =
Throw
.IfNull(builder).Services.AddSingleton<IHybridCacheSerializer<T>, TImplementation>();
46
_ =
Throw
.IfNull(builder).Services.AddSingleton<IHybridCacheSerializerFactory>(factory);
59
_ =
Throw
.IfNull(builder).Services.AddSingleton<IHybridCacheSerializerFactory, TImplementation>();
HybridCacheServiceExtensions.cs (2)
23
_ =
Throw
.IfNull(setupAction);
35
_ =
Throw
.IfNull(services);
Internal\DefaultHybridCache.cs (1)
61
_services =
Throw
.IfNull(services);
Internal\RecyclableArrayBufferWriter.cs (1)
85
_ =
Throw
.IfLessThan(count, 0);