Skip to content

Decorate the claim extensions with [OverloadResolutionPriority] and collection expressions for ImmutableArray<T>#2268

Merged
kevinchalet merged 1 commit intoopeniddict:devfrom
kevinchalet:immutable_array_collection_expressions
Mar 15, 2025
Merged

Decorate the claim extensions with [OverloadResolutionPriority] and collection expressions for ImmutableArray<T>#2268
kevinchalet merged 1 commit intoopeniddict:devfrom
kevinchalet:immutable_array_collection_expressions

Conversation

@kevinchalet
Copy link
Member

Now that OpenIddict uses System.Collections.Immutable 8.0 as the minimum version, we can bring back collection expressions for ImmutableArray<T> calls (see #1998 for the reason why we had to stop use them when moving to the .NET 8.0.200 SDK).

This PR also adds [OverloadResolutionPriority] to a bunch of extensions to favor the overloads accepting an ImmutableArray<T> parameter.

@kevinchalet kevinchalet added this to the 7.0.0-preview1 milestone Mar 15, 2025
@kevinchalet kevinchalet self-assigned this Mar 15, 2025
@kevinchalet kevinchalet merged commit e39c635 into openiddict:dev Mar 15, 2025
6 checks passed
@kevinchalet kevinchalet deleted the immutable_array_collection_expressions branch March 15, 2025 16:04
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