Skip to content

[WIP] Support metadata only endpoints #46536

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 3 commits into from
Closed

[WIP] Support metadata only endpoints #46536

wants to merge 3 commits into from

Conversation

HaoK
Copy link
Member

@HaoK HaoK commented Feb 8, 2023

For #43642

based on: https://github.com/DamianEdwards/AspNetCorePathAuthorization#endpoint-metadata-decorators-implementation-points

Todo:

  • First class support as part of building the endpoints instead of replacing

@ghost ghost added the area-runtime label Feb 8, 2023
@HaoK HaoK added old-area-web-frameworks-do-not-use *DEPRECATED* This label is deprecated in favor of the area-mvc and area-minimal labels and removed area-runtime labels Feb 8, 2023
@@ -10,6 +11,39 @@

namespace Microsoft.AspNetCore.Builder;

internal class MetadataOnlyEndpointMetadata
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
internal class MetadataOnlyEndpointMetadata
internal sealed class MetadataOnlyEndpointMetadata


}

internal class MetadataOnlyEndpoint : Endpoint
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
internal class MetadataOnlyEndpoint : Endpoint
internal sealed class MetadataOnlyEndpoint : Endpoint

@@ -120,3 +127,139 @@ public static IServiceCollection AddRouting(this IServiceCollection services)
return services;
}
}

internal class EndpointMetadataDecoratorMatcherPolicy : MatcherPolicy, IEndpointSelectorPolicy
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
internal class EndpointMetadataDecoratorMatcherPolicy : MatcherPolicy, IEndpointSelectorPolicy
internal sealed class EndpointMetadataDecoratorMatcherPolicy : MatcherPolicy, IEndpointSelectorPolicy

@danmoseley danmoseley added area-routing and removed old-area-web-frameworks-do-not-use *DEPRECATED* This label is deprecated in favor of the area-mvc and area-minimal labels labels Jul 7, 2023
@halter73 halter73 closed this Dec 18, 2024
@dotnet-policy-service dotnet-policy-service bot added this to the 10.0-preview1 milestone Dec 18, 2024
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.

4 participants