Preserve legacy fill-or-EOF reads on closed GZip streams
ProprietaryAfter reviewing the legacy read contract, replace direct ignored positive constant-count reads on exact nonescaping GZipStream using resources with a fill-or-EOF loop. Evaluate receiver/buffer once, preserve short EOF and resource lifetime, and leave zero/unknown counts, async/captures, custom/escaped receivers, assigned reads and conditional snapshots unchanged. Standalone; no new runtime API or EOF exception policy.
OpenRewrite. Recipes. CSharp. Migration. Dotnet. Net6. PreserveClosedGZipHeaderReadsOptional
LegacyReadContractConfirmedBoolean
Confirm the consuming compilations require the pre-.NET 6 fill-or-EOF contract. Modern intentional partial reads must not opt in.
mod run . --recipe= OpenRewrite. Recipes. CSharp. Migration. Dotnet. Net6. PreserveClosedGZipHeaderReadsInstall it once, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.