Skip to content

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

Following #361 and #362

This PR does some API cleanup and fixes. Some of the changes are breaking but are required to fix an issue where Amazon clients were not disposed after use.

Copy link

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 improves cloud provider code by fixing resource disposal issues, renaming APIs for clarity, and fixing typos. The main focus is on ensuring AWS S3 clients are properly disposed after use to prevent resource leaks.

  • Introduces proper resource disposal for AWS S3 clients by implementing IDisposable pattern
  • Renames factory methods and properties for better API clarity (e.g., "Provider" → "Factory")
  • Fixes spelling errors and typos throughout the codebase

Reviewed Changes

Copilot reviewed 14 out of 15 changed files in this pull request and generated 3 comments.

Show a summary per file
File Description
AWSS3StorageImageProviderFactory.cs Updates test utilities to use new client wrapper and fixes spelling error
AWSS3StorageCacheTestServerFixture.cs Removes service provider parameter from cache creation
AWSS3StorageCacheCacheFolderTestServerFixture.cs Removes service provider parameter from cache creation
AzureBlobStorageImageProviderOptions.cs Renames provider properties to factory and fixes spelling
AzureBlobStorageImageProvider.cs Updates to use renamed factory properties and fixes typos
AzureBlobStorageCacheOptions.cs Renames provider property to factory
AzureBlobStorageCache.cs Updates to use renamed factory property
AWSS3StorageImageProviderOptions.cs Updates interface to use new client wrapper type
AWSS3StorageImageProvider.cs Implements IDisposable and uses new client wrapper
IAWSS3BucketClientOptions.cs Updates interface with new factory pattern and improves documentation
AWSS3StorageCacheOptions.cs Updates to use new client wrapper type
AWSS3StorageCache.cs Implements IDisposable and uses new client wrapper
AmazonS3ClientFactory.cs Updates factory to return new wrapper type
AmazonS3BucketClient.cs New wrapper class for Amazon S3 client with disposal management

@JimBobSquarePants JimBobSquarePants merged commit a1aec11 into main Aug 1, 2025
8 checks passed
@JimBobSquarePants JimBobSquarePants deleted the js/feature-client-provider branch August 1, 2025 05:52
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