internal static IDisposable EnterScope(MemoryCacheEntry entry) { var scopes = GetOrCreateScopes(); var scopeLease = new ScopeLease(scopes); Scopes = scopes.Push(entry); return(scopeLease); }
private CacheEntryStack(CacheEntryStack previous, MemoryCacheEntry entry) { if (previous == null) { throw new ArgumentNullException(nameof(previous)); } _previous = previous; _entry = entry; }
public CacheEntryStack Push(MemoryCacheEntry c) { return(new CacheEntryStack(this, c)); }