Condividi tramite


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

Definition

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