← All recipes
Moderne licensed

Find HttpClientHandler usage (HttpClientFactory default change)

Recipe IDOpenRewrite.Recipes.CSharp.Migration.Dotnet.Net9.FindHttpClientHandlerCastArtifactOpenRewrite.Recipes.CSharp.Migration.Dotnet

Finds usages of HttpClientHandler which may break when HttpClientFactory switches its default handler to SocketsHttpHandler in .NET 9.

Single recipesearchdotnetnetworkingnet9Proprietary

Usage

This recipe has no required configuration options. You’ll need the Moderne CLI configured before running the command below.

mod run . --recipe OpenRewrite.Recipes.CSharp.Migration.Dotnet.Net9.FindHttpClientHandlerCast

If the recipe isn’t available locally, install it with:

mod config recipes nuget install OpenRewrite.Recipes.CSharp.Migration.Dotnet