Use the AES factory for a bounded initialized using resource

Proprietary

Lower an inferred AesManaged property initializer into a containing block before using the configured Aes.Create instance. Preserve constructor/setter order and begin disposal only after successful initialization. Require closed forwarded member uses; skip comments, captures, declarations and conditional snapshots. Opt-in compatibility port; no key/mode/format choice.

OpenRewrite.Recipes.CSharp.Migration.Dotnet.Net6.UseInitializedAesManagedUsingFactory
mod run . --recipe=OpenRewrite.Recipes.CSharp.Migration.Dotnet.Net6.UseInitializedAesManagedUsingFactory

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