AllocatedEndpoint
Class net10.0
Represents an endpoint allocated for a service instance.
namespace Aspire.Hosting.ApplicationModel;
public class AllocatedEndpoint{ // ...} 13 members
Constructors3
Section titled ConstructorsAllocatedEndpoint(EndpointAnnotation, string, int, EndpointBindingMode, string?, NetworkIdentifier?) Initializes a new instance of the
AllocatedEndpoint class. AllocatedEndpoint(EndpointAnnotation, string, int, EndpointBindingMode, string?) Initializes a new instance of the
AllocatedEndpoint class. AllocatedEndpoint(EndpointAnnotation, string, int, string?) Initializes a new instance of the
AllocatedEndpoint class. Properties9
Section titled PropertiesAddressgetstring The address of the endpoint
BindingModeget The binding mode of the endpoint, indicating whether it is a single address endpoint or is bound to all IPv4 or IPv6 addresses (or both).
Endpointget Gets the endpoint which this allocation is associated with.
EndPointStringgetstring Endpoint in string representation formatted as
"Address:Port". NetworkIDget Gets the network identifier for the network associated with the
AllocatedEndpoint instance. Portgetint The port used by the endpoint
TargetPortExpressiongetstring? A string representing how to retrieve the target port of the
AllocatedEndpoint instance. UriSchemegetstring For URI-addressed services, contains the scheme part of the address.
UriStringgetstring URI in string representation.