File tree Expand file tree Collapse file tree 1 file changed +10
-1
lines changed
tests/Microsoft.Identity.Web.Test Expand file tree Collapse file tree 1 file changed +10
-1
lines changed Original file line number Diff line number Diff line change @@ -65,7 +65,7 @@ private byte[] GetFirstCacheValue(MemoryCache memoryCache)
65
65
. GetType ( )
66
66
. GetField ( "_entries" , System . Reflection . BindingFlags . Instance | System . Reflection . BindingFlags . NonPublic )
67
67
. GetValue ( content1 ) as IDictionary ) ! ;
68
- #elif NET8_0_OR_GREATER
68
+ #elif NET8_0
69
69
dynamic content1 = memoryCache
70
70
. GetType ( )
71
71
. GetField ( "_coherentState" , System . Reflection . BindingFlags . Instance | System . Reflection . BindingFlags . NonPublic ) !
@@ -74,6 +74,15 @@ private byte[] GetFirstCacheValue(MemoryCache memoryCache)
74
74
. GetType ( )
75
75
. GetField ( "_stringEntries" , System . Reflection . BindingFlags . Instance | System . Reflection . BindingFlags . NonPublic )
76
76
. GetValue ( content1 ) as IDictionary ) ! ;
77
+ #elif NET9_0_OR_GREATER
78
+ dynamic content1 = memoryCache
79
+ . GetType ( )
80
+ . GetField ( "_coherentState" , System . Reflection . BindingFlags . Instance | System . Reflection . BindingFlags . NonPublic ) !
81
+ . GetValue ( memoryCache ) ! ;
82
+ memoryCacheContent = ( content1 ?
83
+ . GetType ( )
84
+ . GetProperty ( "EntriesCollection" , System . Reflection . BindingFlags . Instance | System . Reflection . BindingFlags . NonPublic )
85
+ . GetValue ( content1 ) as IDictionary ) ! ;
77
86
#else
78
87
memoryCacheContent = ( memoryCache
79
88
. GetType ( )
You can’t perform that action at this time.
0 commit comments