Uh oh!
There was an error while loading. Please reload this page.
Add EndpointProperty.HostAndPort - #7629
Conversation
Uh oh!
There was an error while loading. Please reload this page.
- Add `EndpointProperty.HostAndPort` - Update existing places that can now use `HostAndPort` instead of concatenating Host and Port themselves.
86a4471 to
6e217f4CompareUh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
David Fowler (davidfowl)
commented
Feb 17, 2025
The change is good. I don't see that any tests needed updating so that's a good sign. I think you should look to add an explicit one though. |
| Expressions = new() | ||
| { | ||
| { "TwoFullEndpoints", ReferenceExpression.Create($"Test1={Endpoint1.Property(EndpointProperty.Scheme)}://{Endpoint1.Property(EndpointProperty.IPV4Host)}:{Endpoint1.Property(EndpointProperty.Port)}/;Test2={Endpoint2.Property(EndpointProperty.Scheme)}://{Endpoint2.Property(EndpointProperty.Host)}:{Endpoint2.Property(EndpointProperty.Port)}/;") }, |
There was a problem hiding this comment.
Can you add more tests instead of changing these?
There was a problem hiding this comment.
Will do - may not be until later this week I'm afraid.
There was a problem hiding this comment.
I can merge and you can follow up 😄
There was a problem hiding this comment.
Works for me.
Mitch Denny (mitchdenny)
commented
Feb 19, 2025
David Fowler (@davidfowl) wait for 9.2 for this one? |
David Fowler (davidfowl)
commented
Feb 24, 2025
Yep |
Description
EndpointProperty.HostAndPortHostAndPortinstead of concatenating Host and Port themselves.Fixes#7597
Checklist
<remarks />and<code />elements on your triple slash comments?breaking-changetemplate):EndpointProperty.HostAndPortin samples dotnet/docs-aspire#2646Docs repo has a few places that could be optimised with
EndpointProperty.HostAndPortonce this is implementedhttps://github.com/dotnet/docs-aspire/blob/212a101a3526d6b59823fc8406680f86826dc40a/docs/extensibility/snippets/MailDevResource/MailDev.Hosting/MailDevResource.cs#L27
https://github.com/dotnet/docs-aspire/blob/212a101a3526d6b59823fc8406680f86826dc40a/docs/extensibility/snippets/MailDevResourceAndComponent/MailDev.Hosting/MailDevResource.cs#L27https://github.com/dotnet/docs-aspire/blob/212a101a3526d6b59823fc8406680f86826dc40a/docs/extensibility/custom-hosting-integration.md?plain=1#L360
https://github.com/dotnet/docs-aspire/blob/212a101a3526d6b59823fc8406680f86826dc40a/docs/extensibility/snippets/MailDevResourceWithCredentials/MailDev.Hosting/MailDevResource.cs#L48