Invoke current-domain callbacks directly
ProprietaryReplace resolved AppDomain.CurrentDomain.DoCallBack calls with synchronous Action invocation for inline lambdas/method groups and fresh CrossAppDomainDelegate constructions. Framework's current-domain implementation directly invokes the callback. Other domains, delegate values/nulls, commented removed syntax and conditional files are left unchanged. No domain creation, isolation or unloading behavior is changed.
OpenRewrite. Recipes. CSharp. Migration. Dotnet. Net3_0. UseDirectCurrentDomainCallbackmod run . --recipe= OpenRewrite. Recipes. CSharp. Migration. Dotnet. Net3_0. UseDirectCurrentDomainCallbackInstall it once, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.