-
Couldn't load subscription status.
- Fork 168
Description
Proposed topic or title
NA - updates to existing articles
Location in table of contents.
N/A
Reason for the article
dotnet/aspire#7629 introduces an EndpointProperty.HostAndPort to 9.2 that can simplify scenarios where you previously needed to concatenate Host and Port seperately - {foo.Property(EndpointProperty.Host)}:{foo.Property(EndpointProperty.Port)}
The docs currently have a few places that could use this simplification
docs-aspire/docs/extensibility/snippets/MailDevResource/MailDev.Hosting/MailDevResource.cs
Line 28 in 212a101
| $"smtp://{SmtpEndpoint.Property(EndpointProperty.Host)}:{SmtpEndpoint.Property(EndpointProperty.Port)}" |
Line 28 in 212a101
| $"smtp://{SmtpEndpoint.Property(EndpointProperty.Host)}:{SmtpEndpoint.Property(EndpointProperty.Port)}" |
| $"smtp://{SmtpEndpoint.Property(EndpointProperty.Host)}:{SmtpEndpoint.Property(EndpointProperty.Port)}" |
Line 48 in 212a101
| $"Endpoint=smtp://{SmtpEndpoint.Property(EndpointProperty.Host)}:{SmtpEndpoint.Property(EndpointProperty.Port)};Username={UserNameReference};Password={PasswordParameter}" |
Article abstract
N/A
Relevant searches
Searching through the repo for .Property(EndpointProperty.Host)}:{ is how I found the above in case more of these show up in between creating this issue and the docs being updated for 9.2.