Share via


AllocatedEndpoint Constructors

Definition

Overloads

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

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, 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? 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