11 references to IfNull
Microsoft.Extensions.Caching.Hybrid (11)
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 (5)
26
_ = Throw.
IfNull
(setupAction);
41
_ = Throw.
IfNull
(services);
69
_ = Throw.
IfNull
(setupAction);
95
_ = Throw.
IfNull
(optionsName);
118
_ = Throw.
IfNull
(services);
Internal\DefaultHybridCache.cs (2)
68
: this(Throw.
IfNull
(options).Value, services)
74
_services = Throw.
IfNull
(services);