Skip to content

Conversation

@bart-vmware
Copy link
Contributor

@bart-vmware bart-vmware commented Oct 22, 2025

Closes #dotnet/aspire#4224.

Microsoft Reviewers: Open in CodeFlow

@bart-vmware bart-vmware force-pushed the service-discovery-apis branch from bf2d2f6 to 8ce3522 Compare October 22, 2025 12:25
@bart-vmware bart-vmware marked this pull request as ready for review October 22, 2025 14:44
Copilot AI review requested due to automatic review settings October 22, 2025 14:44
Copy link
Contributor

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 exposes building blocks for external service discovery implementations by making previously internal APIs public. The changes enable external developers to implement custom service discovery providers while maintaining consistency with internal patterns.

Key changes:

  • Made UriEndPoint class public with proper constructor and null validation
  • Exposed ApplyAllowedSchemes as a public instance method on ServiceDiscoveryOptions
  • Added ServiceEndpoint.TryParse static method to provide a standard way to parse endpoint strings

Reviewed Changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated 2 comments.

File Description
ServiceDiscoveryOptions.cs Changed ApplyAllowedSchemes from internal static to public instance method with XML documentation
ConfigurationServiceEndpointProvider.cs Updated to use new public ApplyAllowedSchemes method and consolidated endpoint parsing logic
UriEndPoint.cs Changed from internal sealed to public class with public constructor and null validation
ServiceEndpoint.cs Added public TryParse method to centralize endpoint string parsing logic

@bart-vmware
Copy link
Contributor Author

@ReubenBond, can you please review this PR?

@bart-vmware bart-vmware force-pushed the service-discovery-apis branch from a5b1712 to 2fe85ad Compare October 23, 2025 08:52
@bart-vmware
Copy link
Contributor Author

@ReubenBond Thanks for the review and approval.
@davidfowl I've rebased on the latest main after approval. Do we need another pair of eyes, or is this ready to merge now?

@bart-vmware bart-vmware force-pushed the service-discovery-apis branch from 2fe85ad to 598e76f Compare October 27, 2025 15:32
@bart-vmware bart-vmware force-pushed the service-discovery-apis branch from 598e76f to 1e5dc94 Compare October 27, 2025 15:57
@bart-vmware
Copy link
Contributor Author

@rzikm Can you please merge this? I'm trying to find someone with merge permissions...

@davidfowl davidfowl merged commit 7e48a61 into dotnet:main Oct 28, 2025
6 checks passed
@bart-vmware bart-vmware deleted the service-discovery-apis branch October 30, 2025 01:50
This was referenced Nov 13, 2025
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.

3 participants