Skip to content

Adapter for fetching metadata for a package and reuse result for various calls - #6324

Merged
jebriede merged 3 commits into
dev-feature-PackageDomainModelfrom
dev-jebriede-MetadataFetchAdapter
Mar 20, 2025
Merged

jebriede merged 3 commits into
dev-feature-PackageDomainModelfrom
dev-jebriede-MetadataFetchAdapter

Conversation

@jebriede

@jebriede jebriede commented Mar 19, 2025 •

Copy link
Copy Markdown
Contributor

Bug

Fixes:

Description

Adapter for fetching metadata for a package, handling concurrency, and using the same metadata task for various calls.

Also acts as an adapter around the Tuple that contains both the package metadata, and the deprecation info so distinct calls can be made, and a single item can be returned.

PR Checklist

  • Meaningful title, helpful description and a linked NuGet/Home issue
  • Added tests
  • Link to an issue or pull request to update docs if this PR changes settings, environment variables, new feature, etc.

_packageIdentity,
packageSources,
includePrerelease,
cancellationToken);

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

This would mean that only the cancellation token for the first request is being used, not sure what could mean though

@jebriede
jebriede marked this pull request as ready for review March 19, 2025 23:26
@jebriede
jebriede requested a review from a team as a code owner March 19, 2025 23:26
@jebriede
jebriede merged commit f1cf8b9 into dev-feature-PackageDomainModel Mar 20, 2025
@jebriede
jebriede deleted the dev-jebriede-MetadataFetchAdapter branch March 20, 2025 00:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants