Skip to content

Update ImageSharp, dispose asynchronously#384

Merged
JimBobSquarePants merged 1 commit into
mainfrom
js/update-refs
Apr 27, 2025
Merged

Update ImageSharp, dispose asynchronously#384
JimBobSquarePants merged 1 commit into
mainfrom
js/update-refs

Conversation

@JimBobSquarePants

Copy link
Copy Markdown
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.

Copilot AI left a comment

Copy link
Copy Markdown

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

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.

2 participants