Skip to content

Update ImageSharp, dispose asynchronously #384

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Apr 27, 2025
Merged

Conversation

JimBobSquarePants
Copy link
Member

Prerequisites

  • I have written a descriptive pull-request title
  • I have verified that there are no overlapping pull-requests open
  • I have verified that I am following matches the existing coding patterns and practice as demonstrated in the repository. These follow strict Stylecop rules 👮.
  • I have provided test coverage for my change (where applicable)

Description

Updates ImageSharp to v3.1.8 and uses async disposal on relevant resources.

Copy link

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR upgrades ImageSharp to v3.1.8 and updates resource disposal to leverage asynchronous disposal for improved efficiency when handling I/O operations. Key changes include:

  • Converting synchronous using statements to async disposal in ImageSharpMiddleware.cs.
  • Updating StreamWriter disposal to use await using in ImageCacheMetadata.cs.

Reviewed Changes

Copilot reviewed 2 out of 3 changed files in this pull request and generated no comments.

File Description
src/ImageSharp.Web/Middleware/ImageSharpMiddleware.cs Updated using statements for async disposal of streams in request processing.
src/ImageSharp.Web/ImageCacheMetadata.cs Updated StreamWriter disposal to async disposal.
Files not reviewed (1)
  • src/ImageSharp.Web/ImageSharp.Web.csproj: Language not supported

@JimBobSquarePants JimBobSquarePants merged commit e38bc79 into main Apr 27, 2025
8 checks passed
@JimBobSquarePants JimBobSquarePants deleted the js/update-refs branch April 27, 2025 23:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant