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) { // ... }}Parameters
endpointReference EndpointReference The endpoint reference for which to retrieve the host address or host name.Returns
ReferenceExpression A ApplicationModel.ReferenceExpression representing the host address or host name (not a full URL).Exceptions
NotImplementedExceptionThrown when the environment does not implement host-address resolution.Remarks
The returned value typically contains only the host name or address, without scheme, port, or path information. Implementations that support host-address resolution must override this method. The default implementation throws
NotImplementedException so environments that do not support this capability can still implement ApplicationModel.IComputeEnvironmentResource .