Skip to content

Expose building blocks for external service discovery implementations#6946

Merged
davidfowl merged 2 commits into
dotnet:mainfrom
SteeltoeOSS:service-discovery-apis
Oct 28, 2025
Merged

Expose building blocks for external service discovery implementations#6946
davidfowl merged 2 commits into
dotnet:mainfrom
SteeltoeOSS:service-discovery-apis

Conversation

@bart-vmware

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

Copy link
Copy Markdown
Contributor

Closes #microsoft/aspire#4224.

Microsoft Reviewers: Open in CodeFlow

@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

Copilot AI left a comment

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.

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
Copy Markdown
Contributor Author

@ReubenBond, can you please review this PR?

@bart-vmware

Copy link
Copy Markdown
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

Copy link
Copy Markdown
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 11, 2025
This was referenced Nov 26, 2025
@github-actions github-actions Bot locked and limited conversation to collaborators Nov 29, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants