Use BCL values for ASP.NET cache expiration sentinels
ProprietaryReplace resolved value reads of System.Web.Caching.Cache.NoAbsoluteExpiration/NoSlidingExpiration with their exact DateTime.MaxValue/TimeSpan.Zero initializers. Preserve DateTime kind and ticks. Leave nameof, expression trees, by-reference contexts, arbitrary call/constructor arguments, unresolved/lookalike fields and conditional snapshots unchanged. Cache.Add/Insert arguments are supported because their signatures consume values. No cache implementation or expiration policy is selected. Remove unused top-level legacy imports conservatively.
OpenRewrite. Recipes. CSharp. Migration. Dotnet. Net3_0. UseBclCacheExpirationSentinelsmod run . --recipe= OpenRewrite. Recipes. CSharp. Migration. Dotnet. Net3_0. UseBclCacheExpirationSentinelsInstall it once, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.