Skip to content

Conversation

@captainsafia
Copy link
Member

Contributes towards #61177.

@ghost ghost added the area-networking Includes servers, yarp, json patch, bedrock, websockets, http client factory, and http abstractions label Mar 27, 2025
public static class SomeExtensions
{
public static IServiceCollection AddValidation(this IServiceCollection services, string someString)
Copy link
Member

Choose a reason for hiding this comment

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

Should we make this match the current signature of AddValidation?

Copy link
Member Author

Choose a reason for hiding this comment

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

I couldn't quite figure out how to do that without the overload resolution favoring the AddValidation overload that is declared in the assembly. I suppose we could update the invocation code use a static method to call AddValidation instead of the extension method form.

@captainsafia captainsafia added area-minimal Includes minimal APIs, endpoint filters, parameter binding, request delegate generator etc and removed area-networking Includes servers, yarp, json patch, bedrock, websockets, http client factory, and http abstractions labels Mar 27, 2025
@captainsafia captainsafia enabled auto-merge (squash) March 28, 2025 00:28
@wtgodbe wtgodbe disabled auto-merge March 28, 2025 19:23
@wtgodbe wtgodbe merged commit 287d892 into main Mar 28, 2025
24 of 27 checks passed
@wtgodbe wtgodbe deleted the cs/add-valid-fix branch March 28, 2025 19:23
@dotnet-policy-service dotnet-policy-service bot added this to the 10.0-preview4 milestone Mar 28, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area-minimal Includes minimal APIs, endpoint filters, parameter binding, request delegate generator etc

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants