Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion docs/extensibility/custom-hosting-integration.md
Original file line number Diff line number Diff line change
Expand Up @@ -357,7 +357,7 @@ For example, the `MailDevResource` exposes a property called `ConnectionStringEx
```csharp
public ReferenceExpression ConnectionStringExpression =>
ReferenceExpression.Create(
$"smtp://{SmtpEndpoint.Property(EndpointProperty.Host)}:{SmtpEndpoint.Property(EndpointProperty.Port)}"
$"smtp://{SmtpEndpoint.Property(EndpointProperty.HostAndPort)}"
);
```

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,6 @@ public sealed class MailDevResource(string name) : ContainerResource(name), IRes
// the connection string is composed of the SmtpEndpoint endpoint reference.
public ReferenceExpression ConnectionStringExpression =>
ReferenceExpression.Create(
$"smtp://{SmtpEndpoint.Property(EndpointProperty.Host)}:{SmtpEndpoint.Property(EndpointProperty.Port)}"
$"smtp://{SmtpEndpoint.Property(EndpointProperty.HostAndPort)}"
);
}
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,6 @@ public sealed class MailDevResource(string name) : ContainerResource(name), IRes
// the connection string is composed of the SmtpEndpoint endpoint reference.
public ReferenceExpression ConnectionStringExpression =>
ReferenceExpression.Create(
$"smtp://{SmtpEndpoint.Property(EndpointProperty.Host)}:{SmtpEndpoint.Property(EndpointProperty.Port)}"
$"smtp://{SmtpEndpoint.Property(EndpointProperty.HostAndPort)}"
);
}
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,6 @@ UsernameParameter is not null ?
// the connection string is composed of the SmtpEndpoint endpoint reference.
public ReferenceExpression ConnectionStringExpression =>
ReferenceExpression.Create(
$"Endpoint=smtp://{SmtpEndpoint.Property(EndpointProperty.Host)}:{SmtpEndpoint.Property(EndpointProperty.Port)};Username={UserNameReference};Password={PasswordParameter}"
$"Endpoint=smtp://{SmtpEndpoint.Property(EndpointProperty.HostAndPort))};Username={UserNameReference};Password={PasswordParameter}"
);
}