-
Notifications
You must be signed in to change notification settings - Fork 841
Expose building blocks for external service discovery implementations #6946
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
Conversation
bf2d2f6 to
8ce3522
Compare
There was a problem hiding this 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
UriEndPointclass public with proper constructor and null validation - Exposed
ApplyAllowedSchemesas a public instance method onServiceDiscoveryOptions - Added
ServiceEndpoint.TryParsestatic 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 |
src/Libraries/Microsoft.Extensions.ServiceDiscovery.Abstractions/ServiceEndpoint.cs
Show resolved
Hide resolved
.../Microsoft.Extensions.ServiceDiscovery/Configuration/ConfigurationServiceEndpointProvider.cs
Show resolved
Hide resolved
|
@ReubenBond, can you please review this PR? |
a5b1712 to
2fe85ad
Compare
|
@ReubenBond Thanks for the review and approval. |
2fe85ad to
598e76f
Compare
…or nullability in netstandard/netfx
598e76f to
1e5dc94
Compare
|
@rzikm Can you please merge this? I'm trying to find someone with merge permissions... |
Closes #dotnet/aspire#4224.
Microsoft Reviewers: Open in CodeFlow