Skip to content
DocsTry Aspire
DocsTry

AllocatedEndpoint Constructors

ClassConstructors3 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)
{
// ...
}
}
endpointEndpointAnnotationThe endpoint.
addressstringThe IP address of the endpoint.
portintThe port number of the endpoint.
bindingModeEndpointBindingModeThe binding mode of the endpoint.
targetPortExpressionstring?optionalA string representing how to retrieve the target port of the AllocatedEndpoint instance.
networkIDNetworkIdentifier?optionalThe 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)
{
// ...
}
}
endpointEndpointAnnotationThe endpoint.
addressstringThe IP address of the endpoint.
portintThe port number of the endpoint.
bindingModeEndpointBindingModeThe binding mode of the endpoint.
targetPortExpressionstring?optionalA 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)
{
// ...
}
}
endpointEndpointAnnotationThe endpoint.
addressstringThe IP address of the endpoint.
portintThe port number of the endpoint.
targetPortExpressionstring?optionalA string representing how to retrieve the target port of the AllocatedEndpoint instance.