2 references to IsImmutable
Microsoft.Extensions.Caching.Hybrid (2)
Internal\DefaultHybridCache.CacheItem.cs (1)
109
internal static CacheItem<T> Create() => ImmutableTypeCache<T>.
IsImmutable
? new ImmutableCacheItem<T>() : new MutableCacheItem<T>();
Internal\DefaultHybridCache.StampedeStateT.cs (1)
150
var result = ImmutableTypeCache<T>.
IsImmutable
? (_sharedUnwrap ??= AwaitedAsync(Task)) : AwaitedAsync(Task);