Find obsolete IActionContextAccessor/ActionContextAccessor (ASPDEPR006)

Proprietary

Finds usages of IActionContextAccessor and ActionContextAccessor which are obsolete in .NET 10. Use IHttpContextAccessor and HttpContext.GetEndpoint() instead.

OpenRewrite.Recipes.CSharp.Migration.Dotnet.Net10.FindActionContextAccessorObsolete
mod run . --recipe=OpenRewrite.Recipes.CSharp.Migration.Dotnet.Net10.FindActionContextAccessorObsolete

Install it once, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.