Skip to content
DocsTry Aspire
DocsTry

DockerComposeEnvironmentResource Methods

ClassMethods1 member
Represents a Docker Compose environment resource that can host application resources.
GetHostAddressExpression(EndpointReference)Section titled GetHostAddressExpression(EndpointReference)ReferenceExpression
Gets a ApplicationModel.ReferenceExpression representing the host address or host name for the specified ApplicationModel.EndpointReference.
public class DockerComposeEnvironmentResource
{
public ReferenceExpression GetHostAddressExpression(
EndpointReference endpointReference)
{
// ...
}
}
endpointReferenceEndpointReferenceThe endpoint reference for which to retrieve the host address or host name.
ReferenceExpressionA ApplicationModel.ReferenceExpression representing the host address or host name (not a full URL).
The returned value typically contains only the host name or address, without scheme, port, or path information.