We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ea4f5f2 commit 3f23874Copy full SHA for 3f23874
src/libraries/Microsoft.Extensions.Caching.Memory/src/CacheEntry.cs
@@ -136,6 +136,8 @@ public void Dispose()
136
{
137
_state.IsDisposed = true;
138
139
+ CacheEntryHelper.ExitScope(this, _previous);
140
+
141
// Don't commit or propagate options if the CacheEntry Value was never set.
142
// We assume an exception occurred causing the caller to not set the Value successfully,
143
// so don't use this entry.
@@ -149,7 +151,6 @@ public void Dispose()
149
151
}
150
152
153
- CacheEntryHelper.ExitScope(this, _previous);
154
_previous = null; // we don't want to root unnecessary objects
155
156
0 commit comments