Skip to content
Docs Try Aspire

AllocatedEndpoint Constructors

Class Constructors 3 members
Represents an endpoint allocated for a service instance.
Constructor(EndpointAnnotation, string, int, EndpointBindingMode, string?, NetworkIdentifier?) Section titled Constructor(EndpointAnnotation, string, int, EndpointBindingMode, string?, NetworkIdentifier?)
Initializes a new instance of the AllocatedEndpoint class.
public class AllocatedEndpoint
{
public AllocatedEndpoint(
EndpointAnnotation endpoint,
string address,
int port,
EndpointBindingMode bindingMode,
string? targetPortExpression = null,
NetworkIdentifier? networkID = null)
{
// ...
}
}
endpoint EndpointAnnotation The endpoint.
address string The IP address of the endpoint.
port int The port number of the endpoint.
bindingMode EndpointBindingMode The binding mode of the endpoint.
targetPortExpression string? optional A string representing how to retrieve the target port of the AllocatedEndpoint instance.
networkID NetworkIdentifier? optional The network identifier for the network associated with the endpoint.
Constructor(EndpointAnnotation, string, int, EndpointBindingMode, string?) Section titled Constructor(EndpointAnnotation, string, int, EndpointBindingMode, string?)
Initializes a new instance of the AllocatedEndpoint class.
public class AllocatedEndpoint
{
public AllocatedEndpoint(
EndpointAnnotation endpoint,
string address,
int port,
EndpointBindingMode bindingMode,
string? targetPortExpression = null)
{
// ...
}
}
endpoint EndpointAnnotation The endpoint.
address string The IP address of the endpoint.
port int The port number of the endpoint.
bindingMode EndpointBindingMode The binding mode of the endpoint.
targetPortExpression string? optional A string representing how to retrieve the target port of the AllocatedEndpoint instance.
Constructor(EndpointAnnotation, string, int, string?) Section titled Constructor(EndpointAnnotation, string, int, string?)
Initializes a new instance of the AllocatedEndpoint class.
public class AllocatedEndpoint
{
public AllocatedEndpoint(
EndpointAnnotation endpoint,
string address,
int port,
string? targetPortExpression = null)
{
// ...
}
}
endpoint EndpointAnnotation The endpoint.
address string The IP address of the endpoint.
port int The port number of the endpoint.
targetPortExpression string? optional A string representing how to retrieve the target port of the AllocatedEndpoint instance.