If you remove a cache item in System.Net.Caching that has been expired. The CacheItemRemovedReason parameter in CacheItemRemovedCallback will be overwritten with reason Expired.
The Remove-method checks if the item is expired and if it is simply overwrite the reason.
Turns out that not have that in the documentation can introduce buggs that takes days to find :/
If the behaviour is correct (as it probably is) it should be mentioned in the docs.
If you are interested in how #dotNET came to its current incarnation, these two blog posts by @andrewlock are drawing a pretty complete picture:
Understanding the .NET ecosystem: The evolution of .NET into .NET 7
https://andrewlock.net/understanding-the-dotnet-ecosystem-the-evolution-of-dotnet-into-dotnet-7/
Understanding the .NET ecosystem: The introduction of .NET Standard
https://andrewlock.net/understanding-the-dotnet-ecosystem-the-introduction-of-dotnet-standard/
#learning #knowledge #NETFramework #NETStandard #dotNET7 #history #ecosystem
#dotnet #learning #knowledge #netframework #netstandard #dotnet7 #history #ecosystem
#WPF #printing #dotnet #NetFramework
Sorry, but you suck.
#netframework #dotnet #printing #wpf
Ich verzweifle gerade an UnitTests und dem alten .Net Framework 4.7.2. Manchmal habe ich das Gefühl, dass sich Objektorientierung und UnitTests ganz schön beißen können. Ich komme zumindest seit geraumer Zeit nicht sinnvoll weiter. Alte Frameworks sind halt auch einfach #LegacyCode 😤
#Programming #UnitTests #TTD #NetFramework #ObjektOrientierteProgrammierung
#legacycode #programming #unittests #ttd #netframework #ObjektOrientierteProgrammierung