Share via


AllocatedEndpoint Constructors

Definition

Overloads

AllocatedEndpoint(EndpointAnnotation, String, Int32, String)

Source:
AllocatedEndpoint.cs

Initializes a new instance of the AllocatedEndpoint class.

public AllocatedEndpoint(Aspire.Hosting.ApplicationModel.EndpointAnnotation endpoint, string address, int port, string? targetPortExpression = default);
new Aspire.Hosting.ApplicationModel.AllocatedEndpoint : Aspire.Hosting.ApplicationModel.EndpointAnnotation * string * int * string -> Aspire.Hosting.ApplicationModel.AllocatedEndpoint
Public Sub New (endpoint As EndpointAnnotation, address As String, port As Integer, Optional targetPortExpression As String = Nothing)

Parameters

endpoint
EndpointAnnotation

The endpoint.

address
String

The IP address of the endpoint.

port
Int32

The port number of the endpoint.

targetPortExpression
String

A string representing how to retrieve the target port of the AllocatedEndpoint instance.

Applies to

AllocatedEndpoint(EndpointAnnotation, String, Int32, EndpointBindingMode, String)

Source:
AllocatedEndpoint.cs

Initializes a new instance of the AllocatedEndpoint class.

public AllocatedEndpoint(Aspire.Hosting.ApplicationModel.EndpointAnnotation endpoint, string address, int port, Aspire.Hosting.ApplicationModel.EndpointBindingMode bindingMode, string? targetPortExpression = default);
new Aspire.Hosting.ApplicationModel.AllocatedEndpoint : Aspire.Hosting.ApplicationModel.EndpointAnnotation * string * int * Aspire.Hosting.ApplicationModel.EndpointBindingMode * string -> Aspire.Hosting.ApplicationModel.AllocatedEndpoint
Public Sub New (endpoint As EndpointAnnotation, address As String, port As Integer, bindingMode As EndpointBindingMode, Optional targetPortExpression As String = Nothing)

Parameters

endpoint
EndpointAnnotation

The endpoint.

address
String

The IP address of the endpoint.

port
Int32

The port number of the endpoint.

bindingMode
EndpointBindingMode

The binding mode of the endpoint.

targetPortExpression
String

A string representing how to retrieve the target port of the AllocatedEndpoint instance.

Applies to

AllocatedEndpoint(EndpointAnnotation, String, Int32, String, String)

Source:
AllocatedEndpoint.cs
Source:
AllocatedEndpoint.cs
Source:
AllocatedEndpoint.cs
Source:
AllocatedEndpoint.cs
Source:
AllocatedEndpoint.cs
Source:
AllocatedEndpoint.cs

Initializes a new instance of the AllocatedEndpoint class.

public AllocatedEndpoint(Aspire.Hosting.ApplicationModel.EndpointAnnotation endpoint, string address, int port, string? containerHostAddress = default, string? targetPortExpression = default);
new Aspire.Hosting.ApplicationModel.AllocatedEndpoint : Aspire.Hosting.ApplicationModel.EndpointAnnotation * string * int * string * string -> Aspire.Hosting.ApplicationModel.AllocatedEndpoint
Public Sub New (endpoint As EndpointAnnotation, address As String, port As Integer, Optional containerHostAddress As String = Nothing, Optional targetPortExpression As String = Nothing)

Parameters

endpoint
EndpointAnnotation

The endpoint.

address
String

The IP address of the endpoint.

port
Int32

The port number of the endpoint.

containerHostAddress
String

The address of the container host.

targetPortExpression
String

A string representing how to retrieve the target port of the AllocatedEndpoint instance.

Applies to

AllocatedEndpoint(EndpointAnnotation, String, Int32, EndpointBindingMode, String, NetworkIdentifier)

Source:
AllocatedEndpoint.cs

Initializes a new instance of the AllocatedEndpoint class.

public AllocatedEndpoint(Aspire.Hosting.ApplicationModel.EndpointAnnotation endpoint, string address, int port, Aspire.Hosting.ApplicationModel.EndpointBindingMode bindingMode, string? targetPortExpression = default, Aspire.Hosting.ApplicationModel.NetworkIdentifier? networkID = default);
new Aspire.Hosting.ApplicationModel.AllocatedEndpoint : Aspire.Hosting.ApplicationModel.EndpointAnnotation * string * int * Aspire.Hosting.ApplicationModel.EndpointBindingMode * string * Aspire.Hosting.ApplicationModel.NetworkIdentifier -> Aspire.Hosting.ApplicationModel.AllocatedEndpoint
Public Sub New (endpoint As EndpointAnnotation, address As String, port As Integer, bindingMode As EndpointBindingMode, Optional targetPortExpression As String = Nothing, Optional networkID As NetworkIdentifier = Nothing)

Parameters

endpoint
EndpointAnnotation

The endpoint.

address
String

The IP address of the endpoint.

port
Int32

The port number of the endpoint.

bindingMode
EndpointBindingMode

The binding mode of the endpoint.

targetPortExpression
String

A string representing how to retrieve the target port of the AllocatedEndpoint instance.

networkID
NetworkIdentifier

The network identifier for the network associated with the endpoint.

Applies to

AllocatedEndpoint(EndpointAnnotation, String, Int32, EndpointBindingMode, String, String)

Source:
AllocatedEndpoint.cs
Source:
AllocatedEndpoint.cs

Initializes a new instance of the AllocatedEndpoint class.

public AllocatedEndpoint(Aspire.Hosting.ApplicationModel.EndpointAnnotation endpoint, string address, int port, Aspire.Hosting.ApplicationModel.EndpointBindingMode bindingMode, string? containerHostAddress = default, string? targetPortExpression = default);
new Aspire.Hosting.ApplicationModel.AllocatedEndpoint : Aspire.Hosting.ApplicationModel.EndpointAnnotation * string * int * Aspire.Hosting.ApplicationModel.EndpointBindingMode * string * string -> Aspire.Hosting.ApplicationModel.AllocatedEndpoint
Public Sub New (endpoint As EndpointAnnotation, address As String, port As Integer, bindingMode As EndpointBindingMode, Optional containerHostAddress As String = Nothing, Optional targetPortExpression As String = Nothing)

Parameters

endpoint
EndpointAnnotation

The endpoint.

address
String

The IP address of the endpoint.

port
Int32

The port number of the endpoint.

bindingMode
EndpointBindingMode

The binding mode of the endpoint.

containerHostAddress
String

The address of the container host.

targetPortExpression
String

A string representing how to retrieve the target port of the AllocatedEndpoint instance.

Applies to